rebase -i: respect core.abbrev
authorKirill A. Shutemov <redacted>
Sat, 28 Sep 2013 15:53:05 +0000 (18:53 +0300)
committerJonathan Nieder <redacted>
Mon, 30 Sep 2013 21:34:50 +0000 (14:34 -0700)
collapse_todo_ids() uses `git rev-parse --short=7' to abbreviate
commit ids before showing them to the user in a text editor.  Let's
drop argument from --short to the configured value instead (still
defaulting to 7).

Signed-off-by: Kirill A. Shutemov <redacted>
Acked-by: Eric Sunshine <redacted>
Signed-off-by: Jonathan Nieder <redacted>
git-rebase--interactive.sh

index 10bf318d0d4ecc03dcf52d3f665410c48d26bdfd..3c6bed9a28f7ff96fa619a9acbfc42e4a2c78828 100644 (file)
@@ -713,7 +713,7 @@ expand_todo_ids() {
 }
 
 collapse_todo_ids() {
-       transform_todo_ids --short=7
+       transform_todo_ids --short
 }
 
 # Rearrange the todo list that has both "pick sha1 msg" and
git clone https://git.99rst.org/PROJECT