author | Lars Hjemli <hjemli@gmail.com> | |
Sat, 15 Aug 2009 14:23:12 +0000 (16:23 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Aug 2009 19:05:58 +0000 (12:05 -0700) | ||
commit | d8526a4c3b31d91b623f698be6ed7552ed4fdc52 | |
tree | 6cf828ca0790e42da48c2fe1fde37eaa3a48cace | tree | snapshot |
parent | 8d9518439595c9d2c601e841a6792d9ee30f9293 | commit | diff |
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>
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>
Documentation/git-log.txt | diff | blob | history | |
builtin-log.c | diff | blob | history | |
log-tree.c | diff | blob | history | |
log-tree.h | diff | blob | history | |
pretty.c | diff | blob | history | |
revision.c | diff | blob | history | |
revision.h | diff | blob | history | |
t/t4013-diff-various.sh | diff | blob | history | |
t/t4013/diff.log_--decorate=full_--all | [new file with mode: 0644] | blob |