-
Notifications
You must be signed in to change notification settings - Fork 141
[Outreachy] merge-ours: parse-option #425
New issue
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,20 @@ | |
#include "git-compat-util.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Emily Shaffer wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, my sincerest apologies. I should have been more thorough in evaluating the importance of a clean original commit message before submitting it. I will certainly keep all of that in mind for this project and any future projects and contributions. I will edit it accordingly to your advice and include credit for the substantial and significant assistance you and dscho provided. :) ty. -George There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, George Espinoza wrote (reply to this):
|
||
#include "builtin.h" | ||
#include "diff.h" | ||
#include "parse-options.h" | ||
|
||
static const char builtin_merge_ours_usage[] = | ||
"git merge-ours <base>... -- HEAD <remote>..."; | ||
static const char * const merge_ours_usage[] = { | ||
N_("git merge-ours [<base>...] -- <head> <merge-head>..."), | ||
NULL, | ||
}; | ||
|
||
int cmd_merge_ours(int argc, const char **argv, const char *prefix) | ||
{ | ||
if (argc == 2 && !strcmp(argv[1], "-h")) | ||
usage(builtin_merge_ours_usage); | ||
struct option options[] = { | ||
OPT_END() | ||
}; | ||
|
||
argc = parse_options(argc, argv, prefix, options, merge_ours_usage, 0); | ||
|
||
/* | ||
* The contents of the current index becomes the tree we | ||
|
Uh oh!
There was an error while loading. Please reload this page.