summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-02-06 22:05:27 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-06 22:05:28 -0800
commit3a14fdec88125c4fd093f938cf406231b932e3a2 (patch)
tree1b67f5143fdd6b3be964a2e57ac65c557d1fe566 /builtin/diff.c
parentMerge branch 'sh/submodule-summary-abbrev-fix' (diff)
parentvarious: tighten constness of some local variables (diff)
downloadtgif-3a14fdec88125c4fd093f938cf406231b932e3a2.tar.xz
Merge branch 'sl/const'
Code cleanup. * sl/const: various: tighten constness of some local variables
Diffstat (limited to 'builtin/diff.c')
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 74351a5757..9f6109224b 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -103,7 +103,7 @@ static int builtin_diff_blobs(struct rev_info *revs,
int argc, const char **argv,
struct object_array_entry **blob)
{
- unsigned mode = canon_mode(S_IFREG | 0644);
+ const unsigned mode = canon_mode(S_IFREG | 0644);
if (argc > 1)
usage(builtin_diff_usage);