diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-30 11:59:08 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-30 15:58:32 -0800 |
commit | 7cbcf4d5579bdc5d9f8a4bf3f37d3390fc6e2572 (patch) | |
tree | cc59576b721617ee30e804ff3634e462d7b0123c /revision.c | |
parent | 99e09cce8d0eace48209483b07e2a9d99542bd04 (diff) | |
download | git-7cbcf4d5579bdc5d9f8a4bf3f37d3390fc6e2572.tar.gz |
Move commit reencoding parameter parsing to revision.c
This way, git-rev-list and git-diff-tree with --pretty can use
it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/revision.c b/revision.c index af9f87418c..6e4ec46302 100644 --- a/revision.c +++ b/revision.c @@ -1039,6 +1039,14 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch all_match = 1; continue; } + if (!strncmp(arg, "--encoding=", 11)) { + arg += 11; + if (strcmp(arg, "none")) + git_log_output_encoding = strdup(arg); + else + git_log_output_encoding = ""; + continue; + } opts = diff_opt_parse(&revs->diffopt, argv+i, argc-i); if (opts > 0) { |