author | Pierre Habouzit <madcoder@debian.org> | |
Mon, 24 Dec 2007 11:18:22 +0000 (12:18 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Dec 2007 23:59:31 +0000 (15:59 -0800) | ||
commit | a2cf9f445e9074df1a45f5179cef0d4bb8647dd8 | |
tree | 77e5e5b8af0a862303c046a3becabbba62a3e6b3 | tree | snapshot |
parent | 30ffa60377acb443033045a42ffecefdb0921ebb | commit | diff |
git-name-rev: add a --(no-)undefined option.
Rework get_rev_name to return NULL rather than "undefined" when a
reference is undefined. If --undefined is passed (default), git-name-rev
prints "undefined" for the name, else it die()s.
Make git-describe use --no-undefined when calling git-name-rev so
that --contains behavior matches the standard git-describe one.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Rework get_rev_name to return NULL rather than "undefined" when a
reference is undefined. If --undefined is passed (default), git-name-rev
prints "undefined" for the name, else it die()s.
Make git-describe use --no-undefined when calling git-name-rev so
that --contains behavior matches the standard git-describe one.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-describe.c | diff | blob | history | |
builtin-name-rev.c | diff | blob | history |