Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-22 Thread Matthieu Moy
BOMPARD CORENTIN p1603631 writes: > Add the --set-upstream option to git pull/fetch Add _a_? > which lets the user set the upstream configuration > (branch..merge and > branch..remote) for the current branch. > > For example a typical use-case like I don't understand this sentence. Perhaps A

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-19 Thread Junio C Hamano
Matthieu Moy writes: > -u:: > --set-upstream:: > For every branch that is up to date or successfully pushed, add > upstream (tracking) reference, used by argument-less > linkgit:git-pull[1] and other commands. For more information, > see `branch..merge` in linkgit:git-conf

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-19 Thread Matthieu Moy
Junio C Hamano writes: > Matthieu Moy writes: > >> -u:: >> --set-upstream:: >> For every branch that is up to date or successfully pushed, add >> upstream (tracking) reference, used by argument-less >> linkgit:git-pull[1] and other commands. For more information, >> see `bran

[PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-19 Thread Corentin BOMPARD
Add the --set-upstream option to git pull/fetch which lets the user set the upstream configuration (branch..merge and branch..remote) for the current branch. For example a typical use-case like git clone http://example.com/my-public-fork git remote add main http://example.com/project-mai

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-19 Thread Corentin BOMPARD
>Corentin BOMPARD writes: > >> Add the --set-upstream option to git pull/fetch >> which lets the user set the upstream configuration >> for the current branch. > > I think it is a good idea to mention what you exactly mean by "the > upstream configuration" here. > > Do you mean the "branch..merg

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-18 Thread Matthieu Moy
BOMPARD CORENTIN p1603631 writes: > + warning(_("No source branch found. \n You need to > specify excatly " > + "one branch with the > set-upstream option.")); s/excatly/exactly/ Also, this " \n " is weird, the trailing whitespac

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-18 Thread Matthieu Moy
Junio C Hamano writes: >> --- a/Documentation/fetch-options.txt >> +++ b/Documentation/fetch-options.txt >> @@ -165,6 +165,11 @@ ifndef::git-pull[] >> Disable recursive fetching of submodules (this has the same effect as >> using the `--recurse-submodules=no` option). >> >> +--set-ups

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-17 Thread Junio C Hamano
Corentin BOMPARD writes: > Add the --set-upstream option to git pull/fetch > which lets the user set the upstream configuration > for the current branch. I think it is a good idea to mention what you exactly mean by "the upstream configuration" here. Do you mean the "branch..merge" configurat

[PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-17 Thread Corentin BOMPARD
Add the --set-upstream option to git pull/fetch which lets the user set the upstream configuration for the current branch. For example a typical use-case like git clone http://example.com/my-public-fork git remote add main http://example.com/project-main-repo git pull main master --set

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-09 Thread Corentin BOMPARD
> BOMPARD CORENTIN p1603631 writes: > >> Adding the --set-upstream option to git pull/fetch > > We usually write commit messages with imperative tone, hence "add", not > "adding". Fixed. >> +/* >> + * We want to set the current branch config following the >> +

Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-04 Thread Matthieu Moy
BOMPARD CORENTIN p1603631 writes: > Adding the --set-upstream option to git pull/fetch We usually write commit messages with imperative tone, hence "add", not "adding". > + /* > + * We want to set the current branch config following the > + * ref_map entry

[PATCH] [WIP/RFC] add git pull and git fetch --set-upstream

2019-04-04 Thread Corentin BOMPARD
Adding the --set-upstream option to git pull/fetch which lets the user set the upstream configuration for the current branch. For example a typical use-case like git clone http://example.com/my-public-fork git remote add main http://example.com/project-main-repo git pull main master --