author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 06:20:42 +0000 (01:20 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 06:20:42 +0000 (01:20 -0500) | ||
commit | 51cc47fedaaea46a556aac7d4e32683abca1b57b | |
tree | 30480910a9644befa4deb776884cfbaa1abb7fc6 | tree | snapshot |
parent | 0d5709cf88e9f242e0e31ccbda42a1c827c90a22 | commit | 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>
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>
git-gui | diff | blob | history |