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

Re: Rebase/cherry-picking idea

From
Wincent Colaiuta <win@wincent.com>
Date
Nov 28, 2007, 10:04 UTC
Message-ID
<1570EAD5-9F47-4105-B3DA-49CA6FA57369@wincent.com>
In-Reply-To
<7v1waa7lcv.fsf@gitster.siamese.dyndns.org>
El 28/11/2007, a las 10:47, Junio C Hamano escribió:
Show 11 quoted lines
> I think _GIT_FOO vs GIT_FOO is an important detail, not at all a
> bikeshed color, to make things consistent.  "export VAR=VAL" also is a
> valid concern (you said in a separate message you only know about  
> bash,
> and I later asked people if they use shells that get affected with it
> but we happily run otherwise.  I personally do not think the latter  
> is a
> problem, but since somebody already raised it as a potential issue, it
> gave us a good chance to hear from people on minority platforms, if  
> only
> to build confidence in us to use that POSIX form.

I'm still a little concerned that nobody commented when I pointed out that export VAR=VAL is used elsewhere in Git, especially in git- clone.sh, which is very commonly-used porcelain. Is it a problem?

Show 6 quoted lines
> If these details (I do not think the overridability is a minor detail,
> though) look like bikeshedding to you, that is somewhat sad.  You seem
> to be very capable of producing usable code, but these details
> (consistency and flexibility) matter for longer term stability, and I
> would really want to see capable people pay attention to such details,
> especially I sometimes fail to do so myself.

I think the *key* difference between our patches was the refactoring that you did (extracting into a separate function and at the same time making the entire message customizable rather than just the end). I think that's easily explained by the fact that as a new contributor I am pretty much always going to err on the side of the most minimal change possible (minimum number of lines, and changes kept as local as possible), even if it isn't the best or most well-engineered one. Your patch is more invasive, but it's better too, and I think it's more invasive precisely because your knowledge of the codebase and your track record gives you the confidence to make non-minimal changes when you think they're better. With time I imagine I'll evolve away from such defensive, minimal patches as the one I sent.

Cheers, Wincent

Previous: Junio C HamanoNext: Johannes Schindelin
Message 13 of 43 in “Rebase/cherry-picking idea”
  1. Wincent ColaiutaNov 26, 2007
  2. Benoit SigoureNov 26, 2007
  3. Wincent ColaiutaNov 26, 2007
  4. Wincent ColaiutaNov 26, 2007
  5. Benoit SigoureNov 26, 2007
  6. Johannes SixtNov 26, 2007
  7. Wincent ColaiutaNov 26, 2007
  8. Johannes SchindelinNov 26, 2007
  9. Wincent ColaiutaNov 26, 2007
  10. Junio C HamanoNov 28, 2007
  11. Wincent ColaiutaNov 28, 2007
  12. Junio C HamanoNov 28, 2007
  13. Wincent ColaiutaNov 28, 2007
  14. Replace instances of export VAR=VAL with VAR=VAL; export VARJohannes Schindelin, Nov 28, 2007
  15. David KastrupNov 28, 2007
  16. Nguyen Thai Ngoc DuyNov 28, 2007
  17. David KastrupNov 28, 2007
  18. Nguyen Thai Ngoc DuyNov 28, 2007
  19. Johannes SchindelinNov 28, 2007
  20. Johannes SchindelinNov 28, 2007
  21. Johannes SixtNov 28, 2007
  22. Johannes SchindelinNov 28, 2007
  23. Johannes SixtNov 28, 2007
  24. Replace instances of export VAR=VAL with VAR=VAL; export VARJohannes Schindelin, Nov 28, 2007
  25. David KastrupNov 28, 2007
  26. Junio C HamanoNov 28, 2007
  27. David KastrupNov 28, 2007
  28. Jeff KingNov 28, 2007
  29. David KastrupNov 28, 2007
  30. Johannes SixtNov 29, 2007
  31. David KastrupNov 29, 2007
  32. Johannes SchindelinNov 28, 2007
  33. Junio C HamanoNov 28, 2007
  34. Johannes SchindelinNov 28, 2007
  35. Junio C HamanoNov 28, 2007
  36. Johannes SchindelinNov 28, 2007
  37. David KastrupNov 28, 2007
  38. Junio C HamanoNov 28, 2007
  39. Junio C HamanoNov 26, 2007
  40. Marco CostalbaNov 26, 2007
  41. Shawn O. PearceNov 27, 2007
  42. Junio C HamanoNov 27, 2007
  43. Johannes SchindelinNov 26, 2007

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.