* inconsistency with --abbrev=0
@ 2009-05-31 15:48 Markus Heidelberg
2009-05-31 17:46 ` Sverre Rabbelier
0 siblings, 1 reply; 3+ messages in thread
From: Markus Heidelberg @ 2009-05-31 15:48 UTC (permalink / raw)
To: git
The minimum (>=4) number of chars is shown by
git log|show|whatchanged --abbrev-commit --raw --abbrev=0
git rev-list --abbrev-commit --abbrev=0 HEAD
git show-ref --abbrev=0
and the various diff commands
All 40 are shown by
git branch -v --abbrev=0
git ls-files --stage --abbrev=0
git ls-tree --abbrev=0 HEAD
The latter group uses parse-options and doesn't set abbrev to 4 in this
case. This is needed for git-describe to omit the output of the commit.
What should --abbrev=0 behave like?
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inconsistency with --abbrev=0
2009-05-31 15:48 inconsistency with --abbrev=0 Markus Heidelberg
@ 2009-05-31 17:46 ` Sverre Rabbelier
2009-06-01 10:36 ` Markus Heidelberg
0 siblings, 1 reply; 3+ messages in thread
From: Sverre Rabbelier @ 2009-05-31 17:46 UTC (permalink / raw)
To: markus.heidelberg; +Cc: git
Heya,
On Sun, May 31, 2009 at 17:48, Markus Heidelberg
<markus.heidelberg@web.de> wrote:
> What should --abbrev=0 behave like?
If the minimum is 4, then --abbrev=n with n < 4 should give an error
saying that it should be >= 4, no?
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inconsistency with --abbrev=0
2009-05-31 17:46 ` Sverre Rabbelier
@ 2009-06-01 10:36 ` Markus Heidelberg
0 siblings, 0 replies; 3+ messages in thread
From: Markus Heidelberg @ 2009-06-01 10:36 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: git
Sverre Rabbelier, 31.05.2009:
> Heya,
>
> On Sun, May 31, 2009 at 17:48, Markus Heidelberg
> <markus.heidelberg@web.de> wrote:
> > What should --abbrev=0 behave like?
>
> If the minimum is 4, then --abbrev=n with n < 4 should give an error
> saying that it should be >= 4, no?
This would break existing workflows. Currently --abbrev=[1-3] (and also
--abbrev=-n (negative numbers)) always display >=4 chars in all
commands. So you don't have to remind git's lower limit of 4, if you
just want to display as few chars as possible.
Only --abbrev=0 is different.
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-01 10:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-31 15:48 inconsistency with --abbrev=0 Markus Heidelberg
2009-05-31 17:46 ` Sverre Rabbelier
2009-06-01 10:36 ` Markus Heidelberg
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).