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

Re: [PATCH 1/1] git-p4: unshelve: use action==add instead of rev==none

From
Junio C Hamano <gitster@pobox.com>
Date
May 23, 2018, 02:05 UTC
Message-ID
<xmqqk1rvw2i1.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAE5ih79_Ai8F48zFpJ09e8saGrySoiyVdsgkk8ZpRrQAd15a4g@mail.gmail.com>
Luke Diamand <luke@diamand.org> writes:
Show 8 quoted lines
>> However, instead of a separate patch, wouldn't it be better to squash
>> it into the previous one?  So 'make test' would succeed on every
>> commit even with a newer p4 version.
>
> Junio?
>
> I can squash together the original commit and the two fixes if that
> would be better?

Among the three hunks in this fix-up patch, the first two are strictly fixing what you had in the previous patch, so it make sense to fix them at the source by squashing.

The last one (i.e. "even if it is verbose, if fileSize is not reported, do not write the verbose output") does not look like it is limited to the unshelve feature, so it might, even though it is a one-liner, deserve to be a separate preparatory patch if you want. But I do not feel strongly about either way.

Thanks.
Previous: Luke DiamandNext: Luke Diamand
Message 5 of 10 in “git-p4: unshelving: fix problem with newer P4”
  1. 0/1 git-p4: unshelving: fix problem with newer P4Luke Diamand, May 22, 2018
  2. 1/1 git-p4: unshelve: use action==add instead of rev==noneLuke Diamand, May 22, 2018
  3. SZEDER GáborMay 22, 2018
  4. Luke DiamandMay 22, 2018
  5. Junio C HamanoMay 23, 2018
  6. 0/1 git-p4: unshelve: fix problem with newer p4dLuke Diamand, May 23, 2018
  7. 1/1 git-p4: add unshelve commandLuke Diamand, May 23, 2018
  8. Mazo, AndreyMay 23, 2018
  9. Luke DiamandMay 23, 2018
  10. Mazo, AndreyMay 23, 2018

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.