Re: [PATCH] log: make --abbrev-commit's ellipsis configurable
From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:46:10
Hi, On Fri, 13 Feb 2009, Thomas Rast wrote:
'git log --abbrev-commit' adds an ellipsis to all commit names that were abbreviated. This is annoying if you want to cut&paste the sha1 from the terminal, since selecting by word will pick up '...' too. (And this cannot be fixed by making '.' a non-word character; in other instances, such as the '123457..abcdef0' from git-fetch, it's part of the expression.) So we introduce a new variable format.abbrevEllipsis that defaults to true (previous behaviour). If disabled, the formatting routines for log/show/whatchanged do not append an ellipsis. Signed-off-by: Thomas Rast <redacted> --- [...] Documentation/config.txt | 6 ++++++ builtin-log.c | 4 ++++ log-tree.c | 19 ++++++++++++++----- log-tree.h | 3 +++ pretty.c | 6 ++----
I am slightly worried that you overshoot here, as log-tree.c has plumbing users, too, no? How about making this an option, and passing it in rev_opts instead? This option could then be defaulted to in git-log, when the user said --abbrev-commit. Ciao, Dscho