You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto *sub = app.add_subcommand("merge", "Join two or more development histories together");
11
14
12
15
sub->add_option("<branch>", m_branches_to_merge, "Branch(es) to merge");
13
-
// sub->add_flag("--no-ff", m_no_ff, "");
16
+
// sub->add_flag("--no-ff", m_no_ff, "Create a merge commit in all cases, even when the merge could instead be resolved as a fast-forward.");
14
17
// sub->add_flag("--commit", m_commit, "Perform the merge and commit the result. This option can be used to override --no-commit.");
15
18
sub->add_flag("--no-commit", m_no_commit, "With --no-commit perform the merge and stop just before creating a merge commit, to give the user a chance to inspect and further tweak the merge result before committing. \nNote that fast-forward updates do not create a merge commit and therefore there is no way to stop those merges with --no-commit. Thus, if you want to ensure your branch is not changed or updated by the merge command, use --no-ff with --no-commit.");
19
+
sub->add_flag("--abort", m_abort, "Abort the current conflict resolution process, and try to reconstruct the pre-merge state. If an autostash entry is present, apply it to the worktree.\nIf there were uncommitted worktree changes present when the merge started, git merge --abort will in some cases be unable to reconstruct these changes. It is therefore recommended to always commit or stash your changes before running git merge.\ngit merge --abort is equivalent to git reset --merge when MERGE_HEAD is present unless MERGE_AUTOSTASH is also present in which case git merge --abort applies the stash entry to the worktree whereas git reset --merge will save the stashed changes in the stash list.");
20
+
sub->add_flag("--quit", m_quit, "Forget about the current merge in progress. Leave the index and the working tree as-is. If MERGE_AUTOSTASH is present, the stash entry will be saved to the stash list.");
21
+
sub->add_flag("--continue", m_continue, "After a git merge stops due to conflicts you can conclude the merge by running git merge --continue"); // (see "HOW TO RESOLVE CONFLICTS" section below).
// "Ignored files:\n (use \"git add -f <file>...\" to include in what will be committed)"
29
+
const std::string untracked_header = "Untracked files:\n (use \"git add <file>...\" to include in what will be committed)\n";
30
+
const std::string tobecommited_header = "Changes to be committed:\n (use \"git reset HEAD <file>...\" to unstage)\n";
31
+
const std::string ignored_header = "Ignored files:\n (use \"git add -f <file>...\" to include in what will be committed)\n";
35
32
const std::string notstagged_header = "Changes not staged for commit:\n";
36
-
// "Changes not staged for commit:\n (use \"git add%s <file>...\" to update what will be committed)\n (use \"git checkout -- <file>...\" to discard changes in working directory)"
37
-
const std::string nothingtocommit_message = "No changes added to commit";
38
-
// "No changes added to commit (use \"git add\" and/or \"git commit -a\")"
{ GIT_STATUS_WT_MODIFIED, {" M " , "\tmodified:"} },
56
-
{ GIT_STATUS_WT_DELETED, {" D ", "\tdeleted:"} },
57
-
{ GIT_STATUS_WT_TYPECHANGE, {" T ", "\ttypechange:"} },
58
-
{ GIT_STATUS_WT_RENAMED, {" R ", "\trenamed:"} },
59
-
{ GIT_STATUS_WT_UNREADABLE, {"", ""} },
60
-
{ GIT_STATUS_IGNORED, {"!! ", ""} },
61
-
{ GIT_STATUS_CONFLICTED, {"", ""} },
62
-
};
33
+
// "Changes not staged for commit:\n (use \"git add%s <file>...\" to update what will be committed)\n (use \"git checkout -- <file>...\" to discard changes in working directory)\n"
34
+
const std::string unmerged_header = "Unmerged paths:\n (use \"git add <file>...\" to mark resolution)\n";
35
+
// const std::string nothingtocommit_message = "No changes added to commit (use \"git add\" and/or \"git commit -a\")";
36
+
const std::string treeclean_message = "Nothing to commit, working tree clean";
0 commit comments