author | Jeff King <peff@peff.net> | |
Thu, 8 Apr 2010 19:42:37 +0000 (15:42 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 9 Apr 2010 06:13:48 +0000 (23:13 -0700) | ||
commit | b0e621adfd5a60b7cbe95e59f09c87f0870321cb | |
tree | c979738c37c8ac0b7f88d01a54e0615914f061ec | tree | snapshot |
parent | 635530a2fcd4bb3714452403f341f1317ae9c9f6 | commit | diff |
script with rev-list instead of log
Because log.decorate now shows decorations for --pretty=oneline,
we must explicitly turn it off when scripting. Otherwise,
users with log.decorate set will get cruft like:
$ git stash
Saved working directory and index state WIP on master:
2c1f7f5 (HEAD, master) commit subject
Instead of adding --no-decorate to the log command line,
let's just use the rev-list plumbing interface instead,
which does the right thing.
git-submodule has a similar call. Since it just counts the
commit lines, nothing is broken, but let's switch it, too,
for the sake of consistency and cleanliness.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Because log.decorate now shows decorations for --pretty=oneline,
we must explicitly turn it off when scripting. Otherwise,
users with log.decorate set will get cruft like:
$ git stash
Saved working directory and index state WIP on master:
2c1f7f5 (HEAD, master) commit subject
Instead of adding --no-decorate to the log command line,
let's just use the rev-list plumbing interface instead,
which does the right thing.
git-submodule has a similar call. Since it just counts the
commit lines, nothing is broken, but let's switch it, too,
for the sake of consistency and cleanliness.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | diff | blob | history | |
git-submodule.sh | diff | blob | history |