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

Re: [PATCH 2/2] Documentation: make git-sh-setup docs less scary

From
Thomas Rast <trast@student.ethz.ch>
Date
Dec 20, 2011, 20:27 UTC
Message-ID
<87bor3ounz.fsf@thomas.inf.ethz.ch>
In-Reply-To
<CACBZZX5BSfh8S9Kf1Wbi+NPEKpxJNXU8TD8-hkC2o1Mi91Or6A@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 7 quoted lines
> On Tue, Dec 20, 2011 at 12:09, Thomas Rast <trast@student.ethz.ch> wrote:
>> At least one IRC user was scared away by the introductory "This is not
>> a command the end user would want to run.  Ever." to the point of not
>> reading on.
>
> Arguably that's the point isn't it? To not have people who aren't
> maintaining Git itself waste time on reading it.
Junio C Hamano writes:
Show 5 quoted lines
> You would need to say what that IRC user needed to find out. Depending on
> that, letting the user know that there is no point reading on early and
> not waste his or her time may be a good thing. That was what the paragraph
> was designed for. IOW, it is not to "scare" away, but to allow the users
> to decide if they are intended audiences.
Well, the original question was [*]
  <ribasushi> how do I write a batch-test (goes in a script, exit value matters only) to test if the current workdir is clean?
  <ribasushi> i.e. nothing staged/unstaged to commit
  <shruggar> last I looked, there was no "all in one" method :/
  <shruggar> git diff -q && git diff —cached -q, perhaps
  <charon> ribasushi: . "$(git --exec-path)/git-sh-setup" ; require_clean_worktree
  <shruggar> but I think that's ignoring something
  <ribasushi> lack of output of `git status -s` seems to be what I want
  <ribasushi> hmmm
  <ribasushi> charon: git-gh-setup's manpage does not seem to list what you gave me
  <ribasushi> and the manpage says that I should not be touching it...

Leaving aside my worktree vs. work_tree mistake, he concluded that he should not be using it even though he is a script writer.

Regardless, I don't really care enough about this one; let's just do the first patch (v2 upcoming) so that we have documentation to point people at.

[*] http://colabti.org/irclogger/irclogger_log/git?date=2011-12-20#l1284
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 10 in “git-sh-setup: make require_clean_work_tree part of the interface”
  1. 1/2 git-sh-setup: make require_clean_work_tree part of the interfaceThomas Rast, Dec 20, 2011
  2. 2/2 Documentation: make git-sh-setup docs less scaryThomas Rast, Dec 20, 2011
  3. Junio C HamanoDec 20, 2011
  4. Ævar Arnfjörð BjarmasonDec 20, 2011
  5. Thomas RastDec 20, 2011
  6. Junio C HamanoDec 20, 2011
  7. git-sh-setup: make require_clean_work_tree part of the interfaceThomas Rast, Dec 20, 2011
  8. Junio C HamanoDec 20, 2011
  9. git-sh-setup: make require_clean_work_tree part of the interfaceThomas Rast, Dec 20, 2011
  10. Junio C HamanoDec 20, 2011

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.