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

Re: [RFC] describe: add option --dirty

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 23, 2007, 07:58 UTC
Message-ID
<20070723075834.GK32566@spearce.org>
In-Reply-To
<87lkd7mu71.wl@mail2.atmark-techno.com>
Yasushi SHOJI <yashi@atmark-techno.com> wrote:
Show 22 quoted lines
> 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=<n>]
> 	               [--candidates=<n>] [--debug]
> 	               --working-tree | <committish>...
> 	    :
> 	    :
> 	--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.
Previous: Yasushi SHOJINext: Yasushi SHOJI
Message 5 of 7 in “[RFC] describe: add option --dirty”
  1. Yasushi SHOJIJul 23, 2007
  2. Junio C HamanoJul 23, 2007
  3. Shawn O. PearceJul 23, 2007
  4. Yasushi SHOJIJul 23, 2007
  5. Shawn O. PearceJul 23, 2007
  6. Yasushi SHOJIJul 23, 2007
  7. Shawn O. PearceJul 23, 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.