Skip to content

Commit 3695dc0

Browse files
knittlgitster
authored andcommitted
Improvements to git checkout -h
be a little more verbose about what each option does Signed-off-by: Daniel Knittl-Frank <[email protected]> Reviewed-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 861514d commit 3695dc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builtin/checkout.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -691,16 +691,16 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
691691
"create and checkout a new branch"),
692692
OPT_STRING('B', NULL, &opts.new_branch_force, "branch",
693693
"create/reset and checkout a branch"),
694-
OPT_BOOLEAN('l', NULL, &opts.new_branch_log, "log for new branch"),
695-
OPT_SET_INT('t', "track", &opts.track, "track",
694+
OPT_BOOLEAN('l', NULL, &opts.new_branch_log, "create reflog for new branch"),
695+
OPT_SET_INT('t', "track", &opts.track, "set upstream info for new branch",
696696
BRANCH_TRACK_EXPLICIT),
697697
OPT_STRING(0, "orphan", &opts.new_orphan_branch, "new branch", "new unparented branch"),
698-
OPT_SET_INT('2', "ours", &opts.writeout_stage, "stage",
698+
OPT_SET_INT('2', "ours", &opts.writeout_stage, "checkout our version for unmerged files",
699699
2),
700-
OPT_SET_INT('3', "theirs", &opts.writeout_stage, "stage",
700+
OPT_SET_INT('3', "theirs", &opts.writeout_stage, "checkout their version for unmerged files",
701701
3),
702-
OPT_BOOLEAN('f', "force", &opts.force, "force"),
703-
OPT_BOOLEAN('m', "merge", &opts.merge, "merge"),
702+
OPT_BOOLEAN('f', "force", &opts.force, "force checkout (throw away local modifications)"),
703+
OPT_BOOLEAN('m', "merge", &opts.merge, "perform a 3-way merge with the new branch"),
704704
OPT_STRING(0, "conflict", &conflict_style, "style",
705705
"conflict style (merge or diff3)"),
706706
OPT_BOOLEAN('p', "patch", &patch_mode, "select hunks interactively"),

0 commit comments

Comments
 (0)