summaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-02-13 10:50:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-16 09:02:44 (GMT)
commit18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877 (patch)
tree3aee5a6be8dd3c05d8db162cf4ba61c5dca30d3c /builtin-mv.c
parent346245a1bb6272dd370ba2f7b9bf86d3df5fed9a (diff)
downloadgit-18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877.zip
git-18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877.tar.gz
git-18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877.tar.bz2
add--interactive: handle initial commit better
There were several points where we looked at the HEAD commit; for initial commits, this is meaningless. So instead we: - show staged status data as a diff against the empty tree instead of HEAD - show file diffs as creation events - use "git rm --cached" to revert instead of going back to the HEAD commit We magically reference the empty tree to implement this. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-mv.c')
0 files changed, 0 insertions, 0 deletions