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

Re: [PATCH v1 2/2] git-p4: fix Git LFS pointer parsing

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 19, 2016, 21:04 UTC
Message-ID
<xmqqh9exz4xq.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<A6FD8E93-63E8-49EE-838D-2AF3FD3910D4@gmail.com>
Lars Schneider <larsxschneider@gmail.com> writes:
Show 12 quoted lines
>> On 19 Apr 2016, at 22:30, Junio C Hamano <gitster@pobox.com> wrote:
>> 
>> larsxschneider@gmail.com writes:
>> 
>>> From: Lars Schneider <larsxschneider@gmail.com>
>>> 
>>> Git LFS 1.2.0 removed a line from the output of the 'git lfs pointer'
>>> command [1] which broke the parsing of this output. Adjust the parser
>>> to the new output and add minimum Git LFS version to the docs.
>> 
>> Hmph, adjust to operate with both, or drop the support for the old
>> one?
> I dropped the support for the older version to keep the code as
> simple as possible (plus it would be cumbersome to test with an
> outdated Git LFS version). Since it is probably a niche feature I
> thought that might be acceptable.

It is bad enough that clients need to be adjusted at all in the first place, but I would have found it very troubling if the problematic change to LFS thing were made in such a way that it makes backward compatible adjustment on the client code impossible.

But it seems that you could read their output and strip a line that begins with a known substring to make it compatible with both?

"git P4" itself may be niche and using it with the LFS thing may even be more so, but in Git land, traditionally we take the backward compatibility seriously. If it is not too much work, I'd prefer to see this done the right way.

Thanks.
Previous: Lars SchneiderNext: Sebastian Schuberth
Message 6 of 13 in “git-p4: fix Git LFS pointer parsing”
  1. 0/2 git-p4: fix Git LFS pointer parsinglarsxschneider@gmail.com, Apr 19, 2016
  2. 1/2 travis-ci: update Git-LFS and P4 to the latest versionlarsxschneider@gmail.com, Apr 19, 2016
  3. 2/2 git-p4: fix Git LFS pointer parsinglarsxschneider@gmail.com, Apr 19, 2016
  4. Junio C HamanoApr 19, 2016
  5. Lars SchneiderApr 19, 2016
  6. Junio C HamanoApr 19, 2016
  7. Sebastian SchuberthApr 20, 2016
  8. Junio C HamanoApr 20, 2016
  9. Sebastian SchuberthApr 20, 2016
  10. t9824: fix broken &&-chain in a subshellSZEDER Gábor, Apr 24, 2016
  11. Lars SchneiderApr 24, 2016
  12. SZEDER GáborApr 24, 2016
  13. Lars SchneiderApr 24, 2016

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.