diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-10 14:20:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-10 14:20:07 -0800 |
commit | a3764e7da7ae2c30e2e1bbeaa0961a17bced2078 (patch) | |
tree | 4cc71f632465d8043e6d523bdfe6837f7c4e1e42 /convert.c | |
parent | fbf4bdfbf1ce543818363e7bc9286d73a61c0648 (diff) | |
parent | 1a8630dc3b1cc6f1361a4e5d94630133c24c97d9 (diff) | |
download | git-a3764e7da7ae2c30e2e1bbeaa0961a17bced2078.tar.gz |
Merge branch 'ls/clean-smudge-override-in-config'
Clean/smudge filters defined in a configuration file of lower
precedence can now be overridden to be a pass-through no-op by
setting the variable to an empty string.
* ls/clean-smudge-override-in-config:
convert: treat an empty string for clean/smudge filters as "cat"
Diffstat (limited to 'convert.c')
-rw-r--r-- | convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -434,7 +434,7 @@ static int apply_filter(const char *path, const char *src, size_t len, int fd, struct async async; struct filter_params params; - if (!cmd) + if (!cmd || !*cmd) return 0; if (!dst) |