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

RE: [PATCH 5/5] config: add default aliases

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Jul 6, 2021, 15:27 UTC
Message-ID
<04b901d7727b$67f62f10$37e28d30$@nexbridge.com>
In-Reply-To
<044e01d771a6$7c8cefc0$75a6cf40$@nexbridge.com>
On July 5, 2021 10:03 AM, I wrote:
Show 32 quoted lines
>On July 2, 2021 6:38 PM, martin wrote:
>>To: Felipe Contreras <felipe.contreras@gmail.com>; Ævar Arnfjörð Bjarmason <avarab@gmail.com>
>>Cc: git@vger.kernel.org; Junio C Hamano <gitster@pobox.com>
>>Subject: Re: [PATCH 5/5] config: add default aliases
>>
>>On 02/07/2021 23:58, Felipe Contreras wrote:
>>> Ævar Arnfjörð Bjarmason wrote:
>>>>> +ALIAS
>>>>> +~~~~~
>>>>> +'git rb'
>>>> So 'r'e'b'ase, not 're'base.
>>> I don't know if 're' makes more sense here.
>>
>>re:
>>restore
>>rebase
>>reset
>>
>>And restore is on the level of checkout => so more important.
>
>I do not want anything helping out the use of rebase, which we actively discourage in our shop - except for rebase --autosquash to fix up
>topic branches for delivery. git 're' is certainly not helpful.
>
>>From an earlier suggestion, why not just put all of your desired aliases in its own file somewhere and reference them through a construct
>in .gitconfig like:
>
>include="/path/to/alias-config"
>
>which would have to be implemented, but that decouples alias definitions from core git code and allows sharing of the definitions by a
>team without impinging on anyone else. I have great trepidation that users are going to start writing scripts using these aliases. I am
>going to be implementing a team standards document that would cause any use of aliases in scripts to fail code reviews - in fact, I'm
>looking to implement a commit hook that rejects the use of aliases in scripts that are committed.
This is already in place in .gitconfig:
[include]
	path = /path/to/git-aliases
So whatever a team's alias set needs to be can be completely decoupled from git and put into its own repo, and delivered to the team that way. I'm going to recommend that my team uses this for alias management instead of this patch set.
-Randall
Previous: Randall S. BeckerNext: Felipe Contreras
Message 37 of 41 in “Default aliases”
  1. 0/5 Default aliasesFelipe Contreras, Jul 2, 2021
  2. 1/5 test: add missing whitespacesFelipe Contreras, Jul 2, 2021
  3. 2/5 config: trivial style fixFelipe Contreras, Jul 2, 2021
  4. 3/5 config: trivial struct initialization cleanupFelipe Contreras, Jul 2, 2021
  5. 4/5 config: initialize origin_type correctlyFelipe Contreras, Jul 2, 2021
  6. 5/5 config: add default aliasesFelipe Contreras, Jul 2, 2021
  7. Andreas SchwabJul 2, 2021
  8. Felipe ContrerasJul 2, 2021
  9. Andreas SchwabJul 2, 2021
  10. Felipe ContrerasJul 2, 2021
  11. Andreas SchwabJul 2, 2021
  12. martinJul 2, 2021
  13. Felipe ContrerasJul 2, 2021
  14. martinJul 2, 2021
  15. Randall S. BeckerJul 2, 2021
  16. Ævar Arnfjörð BjarmasonJul 2, 2021
  17. Randall S. BeckerJul 2, 2021
  18. martinJul 2, 2021
  19. Felipe ContrerasJul 2, 2021
  20. Randall S. BeckerJul 2, 2021
  21. Felipe ContrerasJul 2, 2021
  22. Junio C HamanoJul 2, 2021
  23. Felipe ContrerasJul 2, 2021
  24. Felipe ContrerasJul 2, 2021
  25. martinJul 2, 2021
  26. Felipe ContrerasJul 2, 2021
  27. Randall S. BeckerJul 2, 2021
  28. Felipe ContrerasJul 2, 2021
  29. Felipe ContrerasJul 2, 2021
  30. martinJul 2, 2021
  31. Felipe ContrerasJul 2, 2021
  32. Ævar Arnfjörð BjarmasonJul 2, 2021
  33. Felipe ContrerasJul 2, 2021
  34. martinJul 2, 2021
  35. Felipe ContrerasJul 2, 2021
  36. Randall S. BeckerJul 5, 2021
  37. Randall S. BeckerJul 6, 2021
  38. Felipe ContrerasJul 6, 2021
  39. Philip OakleyJul 10, 2021
  40. Jeff KingJul 3, 2021
  41. Felipe ContrerasJul 6, 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.