diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-08-15 14:23:12 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-18 20:14:17 (GMT) |
commit | 33e7018c459e6583b899690cabd21c808ffd3c85 (patch) | |
tree | 2249450a0da02f1d7bd9a62f3e8dc2fa012a133b /t/t4013-diff-various.sh | |
parent | 64d5fe0a23e3a16179c7c185662f25d85fe631dd (diff) | |
download | git-33e7018c459e6583b899690cabd21c808ffd3c85.zip git-33e7018c459e6583b899690cabd21c808ffd3c85.tar.gz git-33e7018c459e6583b899690cabd21c808ffd3c85.tar.bz2 |
git-log: allow --decorate[=short|full]
Commit de435ac0 changed the behavior of --decorate from printing the
full ref (e.g., "refs/heads/master") to a shorter, more human-readable
version (e.g., just "master"). While this is nice for human readers,
external tools using the output from "git log" may prefer the full
version.
This patch introduces an extension to --decorate to allow the caller to
specify either the short or the full versions.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013-diff-various.sh')
-rwxr-xr-x | t/t4013-diff-various.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh index 8b33321..8e3694e 100755 --- a/t/t4013-diff-various.sh +++ b/t/t4013-diff-various.sh @@ -207,6 +207,7 @@ log --root --cc --patch-with-stat --summary master log -SF master log -SF -p master log --decorate --all +log --decorate=full --all rev-list --parents HEAD rev-list --children HEAD |