diff options
author | Jeff King <peff@peff.net> | 2008-02-13 05:50:51 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-16 01:02:44 -0800 |
commit | 18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877 (patch) | |
tree | 3aee5a6be8dd3c05d8db162cf4ba61c5dca30d3c /builtin-symbolic-ref.c | |
parent | 346245a1bb6272dd370ba2f7b9bf86d3df5fed9a (diff) | |
download | git-18bc76164dbf4f6d54b8fa9c9c29db9ca66c7877.tar.gz |
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-symbolic-ref.c')
0 files changed, 0 insertions, 0 deletions