Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
convert: put the flags field before the flag itself for consistent style
author
Lars Schneider
<larsxschneider@gmail.com>
Wed, 28 Jun 2017 21:29:50 +0000
(23:29 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 29 Jun 2017 18:23:47 +0000
(11:23 -0700)
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
1757333
)
diff --git
a/convert.c
b/convert.c
index f1e168bc303c71542b692b2b9d08cdb2e2c98669..9907e3b9baa9ccff3156d1c56af6a09f8fb5f557 100644
(file)
--- a/
convert.c
+++ b/
convert.c
@@
-597,12
+597,12
@@
static int apply_multi_file_filter(const char *path, const char *src, size_t len
}
process = &entry->subprocess.process;
}
process = &entry->subprocess.process;
- if (!(
wanted_capability & entry->supported_capabilities
))
+ if (!(
entry->supported_capabilities & wanted_capability
))
return 0;
return 0;
- if (
CAP_CLEAN & wanted_capability
)
+ if (
wanted_capability & CAP_CLEAN
)
filter_type = "clean";
filter_type = "clean";
- else if (
CAP_SMUDGE & wanted_capability
)
+ else if (
wanted_capability & CAP_SMUDGE
)
filter_type = "smudge";
else
die("unexpected filter type");
filter_type = "smudge";
else
die("unexpected filter type");
@@
-703,9
+703,9
@@
static int apply_filter(const char *path, const char *src, size_t len,
if (!dst)
return 1;
if (!dst)
return 1;
- if ((
CAP_CLEAN & wanted_capability
) && !drv->process && drv->clean)
+ if ((
wanted_capability & CAP_CLEAN
) && !drv->process && drv->clean)
cmd = drv->clean;
cmd = drv->clean;
- else if ((
CAP_SMUDGE & wanted_capability
) && !drv->process && drv->smudge)
+ else if ((
wanted_capability & CAP_SMUDGE
) && !drv->process && drv->smudge)
cmd = drv->smudge;
if (cmd && *cmd)
cmd = drv->smudge;
if (cmd && *cmd)