diff options
author | Ann T Ropea <bedhanger@gmx.de> | 2017-12-04 00:27:39 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-04 19:25:35 +0300 |
commit | a2cd709de314a7bfa038e14fd36f1d21077b4173 (patch) | |
tree | 49da7a18df71cc8cf4f3e6d1a05e44c1b654717a /cache.h | |
parent | f61d89e1009da8025794057ca87c21e277d380fa (diff) |
print_sha1_ellipsis: introduce helper
Introduce a helper print_sha1_ellipsis() that pays attention to the
GIT_PRINT_SHA1_ELLIPSIS environment variable, and prepare the tests to
unconditionally set it for the test pieces that will be broken once the code
stops showing the extra dots by default.
The removal of these dots is merely a plan at this step and has not happened
yet but soon will.
Document GIT_PRINT_SHA1_ELLIPSIS.
Signed-off-by: Ann T Ropea <bedhanger@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1942,4 +1942,10 @@ void sleep_millisec(int millisec); */ void safe_create_dir(const char *dir, int share); +/* + * Should we print an ellipsis after an abbreviated SHA-1 value + * when doing diff-raw output or indicating a detached HEAD? + */ +extern int print_sha1_ellipsis(void); + #endif /* CACHE_H */ |