This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Update the index not only where the working tree has a file matching <pathspec> but also where the index already has an entry. This adds, modifies, and removes index entries to match the working tree.\n\nIf no <pathspec> is given when -A option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ " to combine the last 5 commits into 1 commit. This works even with changes in the working tree, which are left untouched, but such usage can lead to confusion."
);
sub->add_flag(
"--mixed",
m_mixed_flag,
"Leave your working directory unchanged. Update the index to match the new HEAD, so nothing will be staged."
);
sub->add_flag(
"--hard",
m_hard_flag,
"Overwrite all files and directories with the version from " + ansi_code::bold + "<commit>"
+ ansi_code::reset + ", and may overwrite untracked files. Tracked files not in "
+ ansi_code::bold + "<commit>" + ansi_code::reset
+ " are removed so that the working tree matches " + ansi_code::bold + "<commit>"
+ ansi_code::reset + ". Update the index to match the new HEAD, so nothing will be staged."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto* stash = app.add_subcommand("stash", "Stash the changes in a dirty working directory away");
auto* push = stash->add_subcommand("push", "");
auto* list = stash->add_subcommand("list", "");
auto* pop = stash->add_subcommand("pop", "");
auto* apply = stash->add_subcommand("apply", "");
auto* show = stash->add_subcommand("show", "Show the changes recorded in the stash as a diff");
auto* stash = app.add_subcommand("stash", "Stash the changes in a dirty working directory away\n");
auto* push = stash->add_subcommand(
"push",
"Save your local modifications to a new stash entry and roll them back to " + ansi_code::bold
+ "HEAD " + ansi_code::reset
+ "(in the working tree and in the index). The <message> part is optional and gives the description along with the stashed state.\n"
);
auto* list = stash->add_subcommand(
"list",
"List the stash entries that you currently have. Each stash entry is listed with its name (e.g. "
+ ansi_code::bold + "stash@" + ansi_code::reset + "{0} is the latest entry, " + ansi_code::bold
+ "stash@" + ansi_code::reset
+ "{1} is the one before, etc.), the name of the branch that was current when the entry was made, and a short description of the commit the entry was based on.\n"
); // TODO: check if shows all of that
auto* pop = stash->add_subcommand(
"pop",
"Remove a single stashed state from the stash list and apply it on top of the current working tree state, i.e., do the inverse operation of "
show->add_flag("--summary", m_summary_flag, "Output a condensed summary\n");
stash->callback(
[this, stash]()
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add missing help information #150
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Add missing help information #150
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing