diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-23 14:30:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-23 14:30:49 -0700 |
commit | a0b1cb60ab296476084b3d4766a943e2d62719b8 (patch) | |
tree | 76ae24f6eb6c2c7488e0c9ae7851ae378d614c3d /builtin/checkout.c | |
parent | 85b3c75f4fd3aa4da976bac702827dc8d7d1bf15 (diff) | |
parent | 385ceec1cb46f8a476fa11ffc853dedba512fd52 (diff) | |
download | git-a0b1cb60ab296476084b3d4766a943e2d62719b8.tar.gz |
Merge branch 'cb/maint-ls-files-error-report' into maint
* cb/maint-ls-files-error-report:
t3005: do not assume a particular order of stdout and stderr of git-ls-files
ls-files: fix pathspec display on error
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r-- | builtin/checkout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index ca855d716c..4c20dae34d 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -201,7 +201,7 @@ static int checkout_merged(int pos, struct checkout *state) } static int checkout_paths(struct tree *source_tree, const char **pathspec, - struct checkout_opts *opts) + const char *prefix, struct checkout_opts *opts) { int pos; struct checkout state; @@ -231,7 +231,7 @@ static int checkout_paths(struct tree *source_tree, const char **pathspec, match_pathspec(pathspec, ce->name, ce_namelen(ce), 0, ps_matched); } - if (report_path_error(ps_matched, pathspec, 0)) + if (report_path_error(ps_matched, pathspec, prefix)) return 1; /* "checkout -m path" to recreate conflicted state */ @@ -1063,7 +1063,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix) if (1 < !!opts.writeout_stage + !!opts.force + !!opts.merge) die(_("git checkout: --ours/--theirs, --force and --merge are incompatible when\nchecking out of the index.")); - return checkout_paths(source_tree, pathspec, &opts); + return checkout_paths(source_tree, pathspec, prefix, &opts); } if (patch_mode) |