| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d5cc590 commit ece804a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,5 +33,6 @@ Contributors are: | |||
| 33 | 33 | -Steven Whitman <ninloot _at_ gmail.com> | |
| 34 | 34 | -Stefan Stancu <stefan.stancu _at_ gmail.com> | |
| 35 | 35 | -César Izurieta <cesar _at_ caih.org> | |
| 36 | + -Arthur Milchior <arthur _at_ milchior.fr> | ||
| 36 | 37 | ||
| 37 | 38 | Portions derived from other open source works and are clearly marked. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1062,3 +1062,14 @@ def has_separate_working_tree(self): | |||
| 1062 | 1062 | ||
| 1063 | 1063 | def __repr__(self): | |
| 1064 | 1064 | return '<git.Repo "%s">' % self.git_dir | |
| 1065 | + | ||
| 1066 | + def currentlyRebasingOn(self): | ||
| 1067 | + """ | ||
| 1068 | + :return: The hash of the commit which is currently being replayed while rebasing. | ||
| 1069 | + | ||
| 1070 | + None if we are not currently rebasing. | ||
| 1071 | + """ | ||
| 1072 | + rebase_head_file = osp.join(self.git_dir, "REBASE_HEAD") | ||
| 1073 | + if not osp.isfile(rebase_head_file): | ||
| 1074 | + return None | ||
| 1075 | + return open(rebase_head_file, "rt").readline().strip() | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments