* Suggestions to make git easier to understand
@ 2011-08-11 7:48 Philippe Vaucher
2011-08-11 22:16 ` Jonathan Nieder
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Vaucher @ 2011-08-11 7:48 UTC (permalink / raw)
To: git
Hello,
The other day I fell on this post:
http://raflabs.com/blogs/silence-is-foo/2011/04/07/staging-area-index-cache-git/
I thought it made some good points about git being kinda confusing,
for example sentences like "Changed but not updated" in git status
could use a better sentence like "Changed but not in the index". Maybe
--cached could have an alias like --index-only for things to be more
intuitive as well.
`git rm --index-only somefile` is more understandable than `git rm
--cached somefile` imho.
Also, in ls-files, --stage could maybe use an alias like --contents
for it to be more self-explanatory.
Philippe
p.s: not saying we should absolutly do what I suggest, but rather
start a discussion about how to make git's terminology more intuitive
and self-explanatory.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Suggestions to make git easier to understand
2011-08-11 7:48 Suggestions to make git easier to understand Philippe Vaucher
@ 2011-08-11 22:16 ` Jonathan Nieder
2011-08-11 22:39 ` Junio C Hamano
2011-08-12 22:26 ` Jeff King
0 siblings, 2 replies; 6+ messages in thread
From: Jonathan Nieder @ 2011-08-11 22:16 UTC (permalink / raw)
To: Philippe Vaucher; +Cc: git, Rafael Magana
Hi Philippe,
Philippe Vaucher wrote:
> http://raflabs.com/blogs/silence-is-foo/2011/04/07/staging-area-index-cache-git/
>
> I thought it made some good points about git being kinda confusing,
> for example sentences like "Changed but not updated" in git status
> could use a better sentence like "Changed but not in the index".
Sounds reasonable (well, with some more precise wording to reflect
that this means "changed but not all changes are reflected in the
index").
> Maybe
> --cached could have an alias like --index-only for things to be more
> intuitive as well.
>
> `git rm --index-only somefile` is more understandable than `git rm
> --cached somefile` imho.
>
> Also, in ls-files, --stage could maybe use an alias like --contents
> for it to be more self-explanatory.
These suggestions also seem sane. Please send patches
(Documentation/SubmittingPatches explains how) so we can refine them
and fix this.
Thanks much,
Jonathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Suggestions to make git easier to understand
2011-08-11 22:16 ` Jonathan Nieder
@ 2011-08-11 22:39 ` Junio C Hamano
2011-08-11 23:08 ` Jonathan Nieder
2011-08-12 22:26 ` Jeff King
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2011-08-11 22:39 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: Philippe Vaucher, git, Rafael Magana
Jonathan Nieder <jrnieder@gmail.com> writes:
>> Maybe
>> --cached could have an alias like --index-only for things to be more
>> intuitive as well.
>>
>> `git rm --index-only somefile` is more understandable than `git rm
>> --cached somefile` imho.
>>
>> Also, in ls-files, --stage could maybe use an alias like --contents
>> for it to be more self-explanatory.
>
> These suggestions also seem sane.
The --index-only synonym was throwed around in a handful of discussions in
the past. It probably would not hurt, I would say.
I do not think "ls-files --contents" makes things any better, though.
Until a new user encounters a conflicted state, it might look like that
the primary point of "ls-files -s" is to show the object names, but it
also is important that it shows the stage numbers.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Suggestions to make git easier to understand
2011-08-11 22:39 ` Junio C Hamano
@ 2011-08-11 23:08 ` Jonathan Nieder
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Nieder @ 2011-08-11 23:08 UTC (permalink / raw)
To: Junio C Hamano
Cc: Philippe Vaucher, git, Rafael Magana,
Nguyễn Thái Ngọc Duy
Junio C Hamano wrote:
> I do not think "ls-files --contents" makes things any better, though.
> Until a new user encounters a conflicted state, it might look like that
> the primary point of "ls-files -s" is to show the object names, but it
> also is important that it shows the stage numbers.
Yes, sloppy of me. I should have said "the intent of these
suggestions seems reasonable, and I believe that with minimal tweaking
they would all lead to good things".
In the case of "ls-files -s", I suspect what would be most useful is
a new porcelain "git ls --merge", building on Duy's work[*].
[*] http://thread.gmane.org/gmane.comp.version-control.git/166405/focus=166415
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Suggestions to make git easier to understand
2011-08-11 22:16 ` Jonathan Nieder
2011-08-11 22:39 ` Junio C Hamano
@ 2011-08-12 22:26 ` Jeff King
2011-08-15 10:15 ` Philippe Vaucher
1 sibling, 1 reply; 6+ messages in thread
From: Jeff King @ 2011-08-12 22:26 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: Philippe Vaucher, git, Rafael Magana
On Thu, Aug 11, 2011 at 05:16:27PM -0500, Jonathan Nieder wrote:
> > http://raflabs.com/blogs/silence-is-foo/2011/04/07/staging-area-index-cache-git/
> >
> > I thought it made some good points about git being kinda confusing,
> > for example sentences like "Changed but not updated" in git status
> > could use a better sentence like "Changed but not in the index".
>
> Sounds reasonable (well, with some more precise wording to reflect
> that this means "changed but not all changes are reflected in the
> index").
Didn't we fix this already in 8009d83 (Better "Changed but not updated"
message in git-status, 2010-11-02)? Since v1.7.4, "git status" has
"Changes not staged for commit".
-Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Suggestions to make git easier to understand
2011-08-12 22:26 ` Jeff King
@ 2011-08-15 10:15 ` Philippe Vaucher
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Vaucher @ 2011-08-15 10:15 UTC (permalink / raw)
To: Jeff King; +Cc: Jonathan Nieder, git, Rafael Magana
> Didn't we fix this already in 8009d83 (Better "Changed but not updated"
> message in git-status, 2010-11-02)? Since v1.7.4, "git status" has
> "Changes not staged for commit".
Yes, and the new text is fine for me.
Philippe
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-08-15 10:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 7:48 Suggestions to make git easier to understand Philippe Vaucher
2011-08-11 22:16 ` Jonathan Nieder
2011-08-11 22:39 ` Junio C Hamano
2011-08-11 23:08 ` Jonathan Nieder
2011-08-12 22:26 ` Jeff King
2011-08-15 10:15 ` Philippe Vaucher
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 NNTP newsgroup(s).