author | Jeff King <peff@peff.net> | |
Wed, 12 Nov 2008 08:21:39 +0000 (03:21 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Nov 2008 20:52:22 +0000 (12:52 -0800) | ||
commit | c1e255b71964e45cee571819c011fbcaaf18be41 | |
tree | f9570553fcc2e799e442b331e92ff5d8ebd6eab6 | tree | snapshot |
parent | 14d9c578961ab834bfb0e26481d0212bc0670883 | commit | diff |
wt-status: refactor initial commit printing
When we showed the initial commit, we had no reference to
diff against, so we went through the cache manually.
Nowadays, however, we have a virtual empty tree commit, so
we can simply diff against that to get the same results.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When we showed the initial commit, we had no reference to
diff against, so we went through the cache manually.
Nowadays, however, we have a virtual empty tree commit, so
we can simply diff against that to get the same results.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c | diff | blob | history |