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

Re: [PATCH v2 2/2] pull: allow dirty tree when rebase.autostash enabled

From
Kevin Daudt <me@ikke.info>
Date
Jun 17, 2015, 10:40 UTC
Message-ID
<20150617104003.GA7345@vps892.directvps.nl>
In-Reply-To
<CACRoPnQ0+h2g2cUJk+8zSkcHjoHjezAGC=5pTjn8aFsgB0GrQA@mail.gmail.com>
On Thu, Jun 11, 2015 at 09:34:08PM +0800, Paul Tan wrote:
Show 6 quoted lines
> On Sun, Jun 7, 2015 at 5:12 AM, Kevin Daudt <me@ikke.info> wrote:
> > From: Kevin Daudt <compufreak@gmail.com>
> >
> > Signed-off-by: Kevin Daudt <me@ikke.info>
> 
> Ehh? The sign-off does not match the author of the patch.
I changed it, but aparently forgot to reset the author for that commit
Show 7 quoted lines
> 
> >  '
> >
> > +test_expect_success 'pull --rebase succeeds with dirty working directory and rebase.autostash set' '
> > +       test_config branch.to-rebase.rebase true &&
> 
> Ok, though I wonder why not just a git pull --rebase...

Copied that from another test, but was doubting whether to use it or not.

Show 7 quoted lines
> 
> > +       test_config rebase.autostash true &&
> > +       git checkout HEAD -- file &&
> 
> Why not git reset --hard before-rebase? If we don't reset HEAD, then
> how would we know if we actually did a rebase?
> 
Good tip, thanks.
> > +       echo dirty > new_file &&
> 
> style: echo dirty >new_file &&
> 
Fixed
Show 7 quoted lines
> > +       git add new_file &&
> > +       git pull . copy &&
> > +       test $(git rev-parse HEAD^) = $(git rev-parse copy) &&
> 
> Okay, although it would be better to use "test_cmp_rev HEAD^ copy"
> because it prints out the hashes if they are different.
> 
Didn't know about that, and aparently, also not documented. Thanks.
> > +       test $(cat new_file) = dirty &&
> 
> "$(cat new_file)" should be quoted to prevent field splitting.
> 
Fixed
New patch is coming.
Previous: Paul TanNext: Kevin Daudt
Message 6 of 16 in “pull: allow dirty tree when rebase.autostash enabled”
  1. pull: allow dirty tree when rebase.autostash enabledKevin Daudt, Jun 2, 2015
  2. Paul TanJun 3, 2015
  3. 1/2 t5520-pull: Simplify --rebase with dirty tree testKevin Daudt, Jun 6, 2015
  4. 2/2 pull: allow dirty tree when rebase.autostash enabledKevin Daudt, Jun 6, 2015
  5. Paul TanJun 11, 2015
  6. Kevin DaudtJun 17, 2015
  7. pull: allow dirty tree when rebase.autostash enabledKevin Daudt, Jun 17, 2015
  8. Junio C HamanoJun 17, 2015
  9. kd/Kevin Daudt, Jul 4, 2015
  10. pull: allow dirty tree when rebase.autostash enabledKevin Daudt, Jul 4, 2015
  11. Junio C HamanoJul 6, 2015
  12. pull: allow dirty tree when rebase.autostash enabledPaul Tan, Jul 7, 2015
  13. Kevin DaudtJul 22, 2015
  14. Junio C HamanoJul 22, 2015
  15. Kevin DaudtJul 22, 2015
  16. Paul TanJun 11, 2015

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.