summaryrefslogtreecommitdiff
path: root/Documentation/git-init-db.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-10-27 20:52:57 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-10-27 23:19:04 -0700
commit24ab81ae4d12c81076da256b3f9cdde45277f126 (patch)
tree840109afbe8820d385bfa23bc79c6cde766a7ad4 /Documentation/git-init-db.txt
parentGIT 1.6.5 (diff)
downloadtgif-24ab81ae4d12c81076da256b3f9cdde45277f126.tar.xz
add-interactive: handle deletion of empty files
Usually we show deletion as a big hunk deleting all of the file's text. However, for files with no content, the diff shows just the 'deleted file mode ...' line. This patch cause "add -p" (and related commands) to recognize that line and explicitly ask about deleting the file. We only add the "stage this deletion" hunk for empty files, since other files will already ask about the big content deletion hunk. We could also change those files to simply display "stage this deletion", but showing the actual deleted content is probably what an interactive user wants. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-init-db.txt')
0 files changed, 0 insertions, 0 deletions