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

Re: [PATCH] git-explain

From
Junio C Hamano <junkio@cox.net>
Date
Dec 5, 2006, 23:07 UTC
Message-ID
<7vslfudjsa.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<46a038f90612051500w44438f70y3c7d1c99998d16bb@mail.gmail.com>
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
Show 12 quoted lines
> On 12/5/06, Jakub Narebski <jnareb@gmail.com> wrote:
>> Junio C Hamano wrote:
>>
>> > [PATCH] git-explain
>> >
>> > This patch adds "git-explain" script that notices various clues
>> > other commands can leave the working tree and repository in and
>> > intended to guide the end user out of the confused mess.
>>
>> I like it, although I think that it explains a bit too little
>
> I like what it does too... but why not as part of git-status?

The biggest reason was that it is a demonstration of concepts, not replacement of anything. Maybe "git status" can be replaced with something like that if people worked on it enough.

The current use of "git status" inside "git commit" needs to be revamped if we pursue this further, though. Because one of the points the "what state is this repository in" check "explain" does is to define what operations are sensible in each state, and most likely in many state it would not make _any_ sense to run "git commit" (say, in the middle of "bisect").

Previous: Martin LanghoffNext: Johannes Schindelin
Message 15 of 21 in “Some advanced index playing”
  1. Alan ChandlerDec 3, 2006
  2. Linus TorvaldsDec 3, 2006
  3. Junio C HamanoDec 3, 2006
  4. Alan ChandlerDec 3, 2006
  5. Jakub NarebskiDec 3, 2006
  6. Alan ChandlerDec 3, 2006
  7. Linus TorvaldsDec 3, 2006
  8. Junio C HamanoDec 4, 2006
  9. Jakub NarebskiDec 3, 2006
  10. Linus TorvaldsDec 3, 2006
  11. Junio C HamanoDec 3, 2006
  12. git-explainJunio C Hamano, Dec 5, 2006
  13. Jakub NarebskiDec 5, 2006
  14. Martin LanghoffDec 5, 2006
  15. Junio C HamanoDec 5, 2006
  16. Johannes SchindelinDec 5, 2006
  17. Junio C HamanoDec 5, 2006
  18. Carl WorthDec 6, 2006
  19. Johannes SchindelinDec 6, 2006
  20. Nicolas PitreDec 6, 2006
  21. Alan ChandlerDec 3, 2006

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.