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

Re: ms/customizable-ident-expansion

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 13, 2021, 09:02 UTC
Message-ID
<xmqqbl1kg9n6.fsf@gitster.g>
In-Reply-To
<211212.86fsqxa19o.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 24 quoted lines
> On Fri, Dec 10 2021, Junio C Hamano wrote:
>
> [CC-ing Maksym, the topic author]
>
>> * ms/customizable-ident-expansion (2021-09-01) 1 commit
>>  - keyword expansion: make "$Id$" string configurable
>>
>>  Instead of "$Id$", user-specified string (like $FreeBSD$) can be
>>  used as an in-blob placeholder for keyword expansion.
>>
>>  Will discard.
>>  Stalled for too long.
>>  cf. <xmqqfsuosvrh.fsf@gitster.g>
>>  cf. <211101.86fssf3bn3.gmgdl@evledraar.gmail.com>
>>  source: <pull.1074.v3.git.git.1630462385587.gitgitgadget@gmail.com>
>
> I'd like to see this go in, not because I'd personally find it useful,
> but mainly because I didn't find anything wrong with it (per my review
> id [1] linked above), and more importantly because the saga ending here
> seems rather unfriendly to a first-time contributor.
>
> Wasn't the "stalled for too long" mainly a victim of timing? I.e. that
> it happened to be submitted/discussed around the end of the last release
> cycle?
I do not think timing has much to do with it.

I have been fairly clear from the very first review of the initial iteration that I do not want us to commit to "per-path" attribute. It will open can of worms [*], and paint us into a corner we cannot get out of easily once such an overly flexible system gets to users' hands. I also was fairly clear that instead I'd expect it would be more sensible if it were a single "instead of $Id$, use $FooId$ throughout the tree" configuration.

I also did not want to force a first-time contributor to commit to deal with a fallout from such a design. A new feature with a very limited scope will have better chance to allow us extend it later without breaking compatibility with the initial version and would be better suited for first-timers.

[Footnote]
* I have already mentioned that users have to figure out when adding
  a new file which keyword applies to the path.  It also troubles me
  that it is not part of the design what should happen when people
  want to move files around.  Not allowing per-path settings means
  we do not have to worry about the extra flexibility hurting the
  users of this (not "customizable" part but the "ident replacement"
  as a whole) misguided feature that shouldn't have been added in
  the first place.
Previous: Ævar Arnfjörð BjarmasonNext: Jeff Hostetler
Message 15 of 21 in “What's cooking in git.git (Dec 2021, #03; Fri, 10)”
  1. Junio C HamanoDec 11, 2021
  2. ns/batched-fsync and ns/remerge-diffNeeraj Singh, Dec 11, 2021
  3. Elijah NewrenDec 11, 2021
  4. Eric SunshineDec 11, 2021
  5. Junio C HamanoDec 13, 2021
  6. Elijah NewrenDec 11, 2021
  7. Junio C HamanoDec 13, 2021
  8. Junio C HamanoDec 15, 2021
  9. tb/midx-bitmap-corruption-fixTaylor Blau, Dec 11, 2021
  10. Junio C HamanoDec 15, 2021
  11. ab/common-main-cleanup (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  12. ab/only-single-progress-at-once (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  13. Junio C HamanoDec 13, 2021
  14. ms/customizable-ident-expansion (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  15. Junio C HamanoDec 13, 2021
  16. Jeff HostetlerDec 13, 2021
  17. Jeff HostetlerDec 13, 2021
  18. 'Re: What's cooking in git.git (Dec 2021, #03; Fri, 10)'Teng Long, Dec 14, 2021
  19. Junio C HamanoDec 15, 2021
  20. Phillip WoodDec 15, 2021
  21. Junio C HamanoDec 15, 2021

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.