Skip to content

Instantly share code, notes, and snippets.

@zcoder
Created April 17, 2012 08:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zcoder/2404695 to your computer and use it in GitHub Desktop.
Save zcoder/2404695 to your computer and use it in GitHub Desktop.
--- git-rebase--interactive.old 2011-06-11 13:17:48.000000000 +0400
+++ git-rebase--interactive 2012-04-17 12:44:09.000000000 +0400
@@ -951,7 +951,7 @@
REVISIONS=$ONTO...$HEAD
SHORTREVISIONS=$SHORTHEAD
fi
- git rev-list $MERGES_OPTION --pretty=oneline --abbrev-commit \
+ git rev-list $merges_option --pretty=">%h (%an <%ae>) %s"\
--abbrev=7 --reverse --left-right --topo-order \
$REVISIONS | \
sed -n "s/^>//p" |
@AcidLeroy
Copy link

Is there anyway to pass a command line option to git to display it like this when doing an interactive rebase, or is the only option to modify the installed file?

@adzenith
Copy link

Currently the only way is to edit this file.

@ElastiLotem
Copy link

Since git 2.6.0 you can add a config variable rebase.instructionFormat to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment