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

Re: [PATCH] Geolocation support

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2015, 20:57 UTC
Message-ID
<xmqqd25ergpk.fsf@gitster.dls.corp.google.com>
In-Reply-To
<87d25ekg65.fsf@ethzero.com>
Alessandro Di Marco <dmr@ethzero.com> writes:
Show 13 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> More importantly, adding non-essential stuff left and right will force
>> third party Git reimplementations to pay attention to them and also
>> will leave room for them to make mistakes when deciding what to
>> propagate, what to drop and what to update when rewriting commits via
>> rebase, cherry-pick, etc.
>
> ??? http://en.wikipedia.org/wiki/Security_through_obscurity
>
> Do you realize that every git I tried so far has happily accepted any
> crufts I sent to it via git push? And that they stored that crufts and
> then returned it on cloning? :-|

Yes, they will all copy the original commits byte-for-byte. Otherwise they are broken.

But that is not the paragraph you quoted and responded is about.

What *should* happen, either in the original repository or the other repository you pushed these commits into, when you _rewrite_ such a commit? Should all the cruft headers be carried over to the rewritten commit? Should all of them be dropped? Should some be kept but some be dropped? Should some be kept under one condition but not others? How are you making sure that all Git reimplementations do the same thing to the random cruft headers?

Previous: Alessandro Di Marco
Message 11 of 11 in “Geolocation support”
  1. Geolocation supportAlessandro Di Marco, May 22, 2013
  2. Ramkumar RamachandraMay 23, 2013
  3. Antoine PelisseMay 23, 2013
  4. Alessandro Di MarcoMay 23, 2013
  5. Junio C HamanoMay 23, 2013
  6. Alessandro Di MarcoFeb 9, 2015
  7. Junio C HamanoFeb 9, 2015
  8. Ævar Arnfjörð BjarmasonFeb 9, 2015
  9. Junio C HamanoFeb 9, 2015
  10. Alessandro Di MarcoFeb 12, 2015
  11. Junio C HamanoFeb 12, 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.