summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-07 14:10:19 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-09 14:36:51 -0700
commitec15be02679ed5a98e4a96b23b99dd1b90196fae (patch)
tree5a2bc6b24a2a7879c80673feabaa21e21a69ba5c /sha1_file.c
parent813ebf82215ce3e07631ea7ab12b30c609adcccd (diff)
downloadgit-ec15be02679ed5a98e4a96b23b99dd1b90196fae.tar.gz
apply: move "already exists" logic to check_to_create()
The check_to_create_blob() function used to check only the case where we are applying to the working tree. Rename the function to check_to_create() and make it also responsible for checking the case where we apply to the index. Also make its caller responsible for issuing an error message. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions