summaryrefslogtreecommitdiff
path: root/builtin/rm.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-08-22 08:08:05 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-06 20:01:13 -0700
commit895ff3b2c73c737b699a921fe71cea4dadefab7b (patch)
tree5e4900163660191be5544e4c4df14f6dd8d73bf9 /builtin/rm.c
parentblame: remove obsolete comment (diff)
downloadtgif-895ff3b2c73c737b699a921fe71cea4dadefab7b.tar.xz
add and use a convenience macro ce_intent_to_add()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rm.c')
-rw-r--r--builtin/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rm.c b/builtin/rm.c
index 3304bff42a..74a7a43efb 100644
--- a/builtin/rm.c
+++ b/builtin/rm.c
@@ -212,7 +212,7 @@ static int check_local_mod(unsigned char *head, int index_only)
* "intent to add" entry.
*/
if (local_changes && staged_changes) {
- if (!index_only || !(ce->ce_flags & CE_INTENT_TO_ADD))
+ if (!index_only || !ce_intent_to_add(ce))
string_list_append(&files_staged, name);
}
else if (!index_only) {