Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bebfe3

Browse files
Arthur-MilchiorByron
authored andcommitted
Returning commit object instead of hash value
1 parent87b5d9c commit4bebfe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/repo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ def __repr__(self):
10651065

10661066
defcurrently_rebasing_on(self):
10671067
"""
1068-
:return: Thehash of thecommit which is currently being replayed while rebasing.
1068+
:return: The commit which is currently being replayed while rebasing.
10691069
10701070
None if we are not currently rebasing.
10711071
"""
10721072
rebase_head_file=osp.join(self.git_dir,"REBASE_HEAD")
10731073
ifnotosp.isfile(rebase_head_file):
10741074
returnNone
1075-
returnopen(rebase_head_file,"rt").readline().strip()
1075+
returnself.commit(open(rebase_head_file,"rt").readline().strip())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp