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
May 23, 2013, 17:48 UTC
Message-ID
<7vhahtfuzm.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CALWbr2w3=DTAMkFtJoLF1_X46fefpEq2WtTb7HGiTiOExFHG3w@mail.gmail.com>
Antoine Pelisse <apelisse@gmail.com> writes:
Show 11 quoted lines
> I'm really not convinced this kind of changes should make it into
> Junio's tree (of course, he's the only one to decide). I really
> believe this is a very specific solution to a very specific problem
> (that is not for me to judge if the problem is real). Bloating the
> commit object with this kind of information doesn't feel like a good
> idea.
>
> I think it could be nice to provide a simple shell script to build the
> location, callable from a post-commit hook, to construct a
> "geolocation" note. Gitk could be programmed to read the notes to get
> the location, but once again, I'm not sure it should be mainlined.
I would personally find the "feature" cute, but
 - I think a note is an overkill for that; and
 - I also think that adding cruft to commit object header in a
   backward incompatible way, with the only possible escape-hatch
   being "if you want to keep being compatible with other people,
   you can choose not to use this feature", is a slipperly slope to
   fragmentation we do not want to go nearby.

Wouldn't it be sufficient to treat this in a similar way as references to tracker entries and references to other commit objects in the text of the commit message body are treated by gitk and friends? Just embed the information in the log text somewhere and teach the UI how they look like and what to do with them.

Previous: Alessandro Di MarcoNext: Alessandro Di Marco
Message 5 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.