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

Re: What's cooking in git.git (Jun 2010, #04; Wed, 23)

From
Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Date
Jun 25, 2010, 19:43 UTC
Message-ID
<CFE3DCC1-E80A-4EF3-964B-E791D3224F06@gmail.com>
In-Reply-To
<7vtyosnj23.fsf@alter.siamese.dyndns.org>
On 25. juni 2010, at 00.48, Junio C Hamano wrote:
Show 10 quoted lines
> Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com> writes:
> 
>> Hm.  Isn't that already a requirement?  If a clean filter doesn't clean
>> to something normalized, simply touching a file could result in spurious
>> differences (much like pre-safe-autocrlf autocrlf).  I could well be
>> missing something here, though.
> 
> A natural expectation would be that g2w-then-w2g is an identity function,
> I think.  But the "feature" under discussion in this thread depends on
> that g2w-then-w2g is _not_ a noop (otherwise it wouldn't do us any good).
Well, it assumes that g2w does not smudge already smudged data (or that w2g can clean up after double smudging), but when the assumption fails you end up with the same merge conflict you would get without this series.  Is it important that _all_ filters support merging?
Show 5 quoted lines
> IOW, we are suggesting authors of clean/smudge to make their g2w-then-w2g
> perform more than just a round-trip but actively _clean things up_, aren't
> we?  I don't think we have documented that suggestion, and I actually
> think we might even have said that g2w-then-w2g should be a no-op
> somewhere in the documentation.
I think it's worth documenting that a well-written ("normalizing", as Finn Arne said) filter allows automatic merging of filtered and unfiltered data.  I'll see what I can come up with.
-- 
Eyvind
Previous: Finn Arne GangstadNext: Junio C Hamano
Message 13 of 24 in “What's cooking in git.git (Jun 2010, #04; Wed, 23)”
  1. Junio C HamanoJun 23, 2010
  2. Ævar Arnfjörð BjarmasonJun 23, 2010
  3. Nazri RamliyJun 24, 2010
  4. Tay Ray ChuanJun 24, 2010
  5. Finn Arne GangstadJun 24, 2010
  6. Johannes SixtJun 24, 2010
  7. Finn Arne GangstadJun 24, 2010
  8. Eyvind BernhardsenJun 24, 2010
  9. Junio C HamanoJun 24, 2010
  10. Eyvind BernhardsenJun 24, 2010
  11. Junio C HamanoJun 24, 2010
  12. Finn Arne GangstadJun 25, 2010
  13. Eyvind BernhardsenJun 25, 2010
  14. Junio C HamanoJun 25, 2010
  15. Johannes SixtJun 25, 2010
  16. Finn Arne GangstadJun 25, 2010
  17. Johannes SixtJun 24, 2010
  18. git log --objectsHolger Hellmuth, Jun 24, 2010
  19. Santi BéjarJun 25, 2010
  20. Clément PoulainJun 24, 2010
  21. Christian CouderJun 25, 2010
  22. Ævar Arnfjörð BjarmasonJun 25, 2010
  23. Michael J GruberJun 25, 2010
  24. Shawn O. PearceJun 23, 2010

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.