git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] pull: cleanup autostash check

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jun 15, 2021, 10:59 UTC
Message-ID
<60c887f678c88_e63320846@natae.notmuch>
In-Reply-To
<CABPp-BGstXDbzxpySw7q_jn22HD05MsrZeHNv+kXFHOFS2_WCQ@mail.gmail.com>
Elijah Newren wrote:
Show 29 quoted lines
> On Sat, Jun 12, 2021 at 9:59 PM Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
> >
> > Currently "git pull --rebase" takes a shortcut in the case a
> > fast-forward merge is possible; run_merge() is called with --ff-only.
> >
> > However, "git merge" didn't have an --autostash option, so, when "git
> > pull --rebase --autostash" was called *and* the fast-forward merge
> > shortcut was taken, then the pull failed.
> >
> > This was fixed in commit f15e7cf5cc (pull: ff --rebase --autostash
> > works in dirty repo, 2017-06-01) by simply skipping the fast-forward
> > merge shortcut.
> >
> > Later on "git merge" learned the --autostash option [a03b55530a
> > (merge: teach --autostash option, 2020-04-07)], and so did "git pull"
> > [d9f15d37f1 (pull: pass --autostash to merge, 2020-04-07)].
> >
> > Therefore it's not necessary to skip the fast-forward merge shortcut
> > anymore when called with --rebase --autostash.
> >
> > Let's always take the fast-forward merge shortcut by essentially
> > reverting f15e7cf5cc.
> >
> > Reviewed-by: Elijah Newren <newren@gmail.com>
> 
> I think you are basing the Reviewed-by on
> https://lore.kernel.org/git/CABPp-BEsQWsHMAmwc3gmJnXcS+aR-FtoMJxBRQ=BpARP49-L-Q@mail.gmail.com/;
> is that correct?
No, more like:
[1] https://lore.kernel.org/git/20201205195313.1557473-5-felipe.contreras@gmail.com/
> Messages from folks that they seem to like the patch
> or believe it looks good should be translated into an Acked-by rather
> than a Reviewed-by; from Documentation/SubmittingPatches:

To me an acknowledgment means something entirely different, and must be expressly given.

> * `Reviewed-by:`, unlike the other tags, can only be offered by the
>   reviewer and means that she is completely satisfied that the patch
>   is ready for application.  It is usually offered only after a
>   detailed review.

Yeah, I read that after I sent v3. In this series I simply cherry-picked it from a previous series.

I guess I'll just avoid both.
-- 
Felipe Contreras
Previous: Elijah NewrenNext: Elijah Newren
Message 8 of 17 in “pull: obvious fixes”
  1. 0/3 pull: obvious fixesFelipe Contreras, Jun 13, 2021
  2. 3/3 pull: trivial whitespace style fixFelipe Contreras, Jun 13, 2021
  3. Elijah NewrenJun 14, 2021
  4. 2/3 pull: trivial cleanupFelipe Contreras, Jun 13, 2021
  5. Elijah NewrenJun 14, 2021
  6. 1/3 pull: cleanup autostash checkFelipe Contreras, Jun 13, 2021
  7. Elijah NewrenJun 14, 2021
  8. Felipe ContrerasJun 15, 2021
  9. Elijah NewrenJun 14, 2021
  10. Junio C HamanoJun 15, 2021
  11. Felipe ContrerasJun 15, 2021
  12. 0/3 pull: obvious fixesFelipe Contreras, Jun 17, 2021
  13. 1/3 pull: cleanup autostash checkFelipe Contreras, Jun 17, 2021
  14. 2/3 pull: trivial cleanupFelipe Contreras, Jun 17, 2021
  15. 3/3 pull: trivial whitespace style fixFelipe Contreras, Jun 17, 2021
  16. Elijah NewrenJun 17, 2021
  17. Felipe ContrerasJun 15, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.