commit | 51cc47fedaaea46a556aac7d4e32683abca1b57b | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <spearce@spearce.org> | Sun Nov 19 01:20:42 2006 -0500 |
committer | Shawn O. Pearce <spearce@spearce.org> | Sun Nov 19 01:20:42 2006 -0500 |
tree | 30480910a9644befa4deb776884cfbaa1abb7fc6 | |
parent | 0d5709cf88e9f242e0e31ccbda42a1c827c90a22 [diff] |
git-gui: Correct toggling of added/untracked status for new files. New files also lack index data from diff-files therefore we cannot use their diff-files index data when we update-index. Instead we can use the fact that Git has them hardcoded as "0 0{40}" and do the same thing ourselves. This way you can toggle an untracked file into added status and back out to untracked. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>