From: Junio C Hamano Date: Wed, 21 Jan 2009 09:08:10 +0000 (-0800) Subject: Merge branch 'maint' X-Git-Tag: v1.6.2-rc0~113 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f873dd5ac22fee648f9097d5a91200b6f4850ae0?ds=inline;hp=-c Merge branch 'maint' * maint: Rename diff.suppress-blank-empty to diff.suppressBlankEmpty --- f873dd5ac22fee648f9097d5a91200b6f4850ae0 diff --combined Documentation/config.txt index 6b3ac5aa90,26551ea6e1..290cb48eb9 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@@ -635,7 -635,7 +635,7 @@@ diff.renames: will enable basic rename detection. If set to "copies" or "copy", it will detect copies, as well. - diff.suppress-blank-empty:: + diff.suppressBlankEmpty:: A boolean to inhibit the standard behavior of printing a space before each empty output line. Defaults to false. @@@ -702,9 -702,7 +702,9 @@@ gc.packrefs: gc.pruneexpire:: When 'git-gc' is run, it will call 'prune --expire 2.weeks.ago'. - Override the grace period with this config variable. + Override the grace period with this config variable. The value + "now" may be used to disable this grace period and always prune + unreachable objects immediately. gc.reflogexpire:: 'git-reflog expire' removes reflog entries older than @@@ -725,10 -723,6 +725,10 @@@ gc.rerereunresolved: kept for this many days when 'git-rerere gc' is run. The default is 15 days. See linkgit:git-rerere[1]. +gitcvs.commitmsgannotation:: + Append this string to each commit message. Set to empty string + to disable this feature. Defaults to "via git-CVS emulator". + gitcvs.enabled:: Whether the CVS server interface is enabled for this repository. See linkgit:git-cvsserver[1]. @@@ -1050,16 -1044,6 +1050,16 @@@ mergetool.keepBackup: is set to `false` then this file is not preserved. Defaults to `true` (i.e. keep the backup files). +mergetool.keepTemporaries:: + When invoking a custom merge tool, git uses a set of temporary + files to pass to the tool. If the tool returns an error and this + variable is set to `true`, then these temporary files will be + preserved, otherwise they will be removed after the tool has + exited. Defaults to `false`. + +mergetool.prompt:: + Prompt before each invocation of the merge resolution program. + pack.window:: The size of the window used by linkgit:git-pack-objects[1] when no window size is given on the command line. Defaults to 10. diff --combined diff.c index d23548292a,5b85b4077a..0731313160 --- a/diff.c +++ b/diff.c @@@ -118,7 -118,9 +118,9 @@@ int git_diff_basic_config(const char *v } /* like GNU diff's --suppress-blank-empty option */ - if (!strcmp(var, "diff.suppress-blank-empty")) { + if (!strcmp(var, "diff.suppressblankempty") || + /* for backwards compatibility */ + !strcmp(var, "diff.suppress-blank-empty")) { diff_suppress_blank_empty = git_config_bool(var, value); return 0; } @@@ -1469,7 -1471,6 +1471,7 @@@ static void builtin_diff(const char *na ecbdata.file = o->file; xpp.flags = XDF_NEED_MINIMAL | o->xdl_opts; xecfg.ctxlen = o->context; + xecfg.interhunkctxlen = o->interhunkcontext; xecfg.flags = XDL_EMIT_FUNCNAMES; if (pe) xdiff_set_find_func(&xecfg, pe->pattern, pe->cflags); @@@ -2040,7 -2041,7 +2042,7 @@@ static void diff_fill_sha1_info(struct if (lstat(one->path, &st) < 0) die("stat %s", one->path); if (index_path(one->sha1, one->path, &st, 0)) - die("cannot hash %s\n", one->path); + die("cannot hash %s", one->path); } } else @@@ -2539,9 -2540,6 +2541,9 @@@ int diff_opt_parse(struct diff_options options->b_prefix = arg + 13; else if (!strcmp(arg, "--no-prefix")) options->a_prefix = options->b_prefix = ""; + else if (opt_arg(arg, '\0', "inter-hunk-context", + &options->interhunkcontext)) + ; else if (!prefixcmp(arg, "--output=")) { options->file = fopen(arg + strlen("--output="), "w"); options->close_file = 1;