Thread (41 messages) flat view 41 messages, 20 authors, 2016-06-15

Re: [Census] So who uses git?

From: Daniel Barkalow <hidden>
Date: 2016-06-15 22:42:17

On Tue, 31 Jan 2006, Johannes Schindelin wrote:
Hi,

On Mon, 30 Jan 2006, Carl Baldwin wrote:
quoted
In general, I think it is grasping the reason for the index file and how 
git commands like git-commit and git-diff interact with it.
IMHO this is the one big showstopper. I had problems explaining the 
concept myself.

For example, I had a hard time explaining to a friend why a git-add'ed 
file is committed when saying "git commit some_other_file", but not 
another (modified) file. Very unintuitive.
I sort of suspect that "git commit some_other_file" should really read 
HEAD into a temporary index, update "some_other_file" in that (and the 
main index), and commit it. The concept of the index isn't hard (it's the 
preparation you've made so far towards a commit), and plain "git commit" 
makes sense with it; "git commit -a" also makes sense, since committing 
all changes is pretty clear. The surprising thing is that "git commit path 
..." means "everything I've already mentioned, plus path..." not just 
"path ...", and it's particularly surprising because people only tend to 
specify paths when they've done something they don't want to commit.

	-Daniel
*This .sig left intentionally blank*
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help