mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
checkout: update count-checkouts messages
Commit0f086e6dca
[1] counts the number of files updated by "git checkout -- <paths>" command and prints it. Later on536ec1839d
[2] adds the ability to remove files in "git checkout -- <paths>". This is still an update on worktree and should be reported to the user. To prepare for such an update since that commit is on track to 'master' now, the messages are rephrased to avoid "checked out" which does not imply file deletion. [1]0f086e6dca
(checkout: print something when checking out paths - 2018-11-13) [2]536ec1839d
(entry: support CE_WT_REMOVE flag in checkout_entry - 2018-12-20) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
774d44cc18
commit
3c5883b3c9
|
@ -392,15 +392,15 @@ static int checkout_paths(const struct checkout_opts *opts,
|
|||
|
||||
if (opts->count_checkout_paths) {
|
||||
if (opts->source_tree)
|
||||
fprintf_ln(stderr, Q_("Checked out %d path out of %s",
|
||||
"Checked out %d paths out of %s",
|
||||
fprintf_ln(stderr, Q_("Updated %d path from %s",
|
||||
"Updated %d paths from %s",
|
||||
nr_checkouts),
|
||||
nr_checkouts,
|
||||
find_unique_abbrev(&opts->source_tree->object.oid,
|
||||
DEFAULT_ABBREV));
|
||||
else
|
||||
fprintf_ln(stderr, Q_("Checked out %d path out of the index",
|
||||
"Checked out %d paths out of the index",
|
||||
fprintf_ln(stderr, Q_("Updated %d path from the index",
|
||||
"Updated %d paths from the index",
|
||||
nr_checkouts),
|
||||
nr_checkouts);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue