From: Shawn O. Pearce Date: Mon, 23 Jul 2007 07:58:34 GMT Subject: Re: [RFC] describe: add option --dirty Message-ID: <20070723075834.GK32566@spearce.org> In-Reply-To: <87lkd7mu71.wl@mail2.atmark-techno.com> Yasushi SHOJI wrote: > From the comments I'd add an option "--workinig-tree" instead of > --dirty to describe the working tree. because that, the special case, > is what we want after all, > > synopsis would be: > > SYNOPSIS > -------- > 'git-describe' [--all] [--tags] [--contains] [--abbrev=] > [--candidates=] [--debug] > --working-tree | ... > : > : > --working-tree:: > Describe the working tree instead of committishes. if the > working tree is dirty, the describe string will have "-dirty" > appended. > > As you can assume from the name, this option requires working > tree; running it on a bare repository will fail. > > what do you think? That's reasonable. It seems like a lot of work in core Git just to avoid a small chunk of shell, but I think almost everyone has that same small chunk of shell in their build scripts... -- Shawn.