I also use `git pull` for all my code review, but I don't think this
case would be any different if we changed it to a fetch/cherry-pick,
because you would still see the merge conflict.
I can see how `repo download` would be helpful, but I never use it.
For the workflow around here, I think just changing `repo download` to
do a fetch/cp would be best and get rid of the other option. If a lot
of others use this command, maybe a second command or a parameter
could be added. Perhaps `repo download --original` or something for
what `repo download` does right now?
On Nov 18, 10:42 am, Jean-Baptiste Queru <
j...@android.com> wrote:
> BTW, when doing code reviews (and especially on AOSP), I do use git
> pull as my primary tool : it's the easiest way to have an idea about
> what's going to happen on the server, and to anticipate future merge
> conflicts. So, there's a use case for it, but it's not what most
> people (and especially non-experts) need to use for their common use
> case.
>
> JBQ
>
>
>
> On Wed, Nov 18, 2009 at 8:37 AM, Shawn Pearce <
s...@google.com> wrote:
> > On Wed, Nov 18, 2009 at 08:33, Mike Lockwood <
lockw...@android.com> wrote:
> >> Yes, I also avoid the git pull. I do "git fetch <url>" followed by
> >> "git cherry-pick FETCH_HEAD"
>
> > Me too.
>
> > I think what we're all saying is, we need to change that command. :-)
>
> >> On Wed, Nov 18, 2009 at 11:24 AM, Anthony <
m.bn...@gmail.com> wrote:
> >>> A lot of users end up causing merge conflicts because they use `git
> >>> pull` provided by Gerrit. Unfortunately git can't easily squash this
> >>> (as far as I know), so right now I tell them to work around it by
> >>> doing something like `repo start TMP . && git cherry-pick -m 1 <sha of
> >>> merge>`.
>
> >>> I think it would be a lot nicer if Gerrit gave a fetch command instead
> >>> (and maybe a cherry-pick with it even), like:
> >>> git fetch .... && git cherry-pick FETCH_HEAD
>
> > --
> > To unsubscribe, email
repo-discuss...@googlegroups.com
> > More info athttp://
groups.google.com/group/repo-discuss?hl=en