Re: bug? - git-checkout treeish paths ignores deleted files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wincent Colaiuta
Date: Monday, October 8, 2007 - 6:52 pm

El 9/10/2007, a las 2:58, Mark Levedahl escribió:


No, the behaviour is correct.

- first you removed the file on the topic branch; at the same time  
you removed it from your working tree
- then you switched back to the master branch and so the file was  
added back to your working tree
- then you switched back to the topic branch, and seeing as the file  
"a" is not being tracked in the topic branch Git doesn't touch it

In general, Git only meddles with stuff that you've told it to track.  
This is actually a good thing in most cases because it makes some  
workflows involving dirty trees or trees with untracked content  
somewhat more convenient.

Cheers,
Wincent

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bug? - git-checkout treeish paths ignores deleted files, Mark Levedahl, (Mon Oct 8, 5:58 pm)
Re: bug? - git-checkout treeish paths ignores deleted files, Wincent Colaiuta, (Mon Oct 8, 6:52 pm)
Re: bug? - git-checkout treeish paths ignores deleted files, Wincent Colaiuta, (Tue Oct 9, 3:20 am)