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

Re: [PATCH 2/2] ls-tree: migrate to parse-options

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 17, 2009, 06:22 UTC
Message-ID
<7vpr7hisc7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1258173248-31059-3-git-send-email-bebarino@gmail.com>
Thanks.

As parse-options infrastructure gives much better per-option help text, there is not much point to keep the list of options that can go stale in the usage text.

I'd squash this to yours.  Ok?
---
 builtin-ls-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-ls-tree.c b/builtin-ls-tree.c
index 04408df..14a913a 100644
--- a/builtin-ls-tree.c
+++ b/builtin-ls-tree.c
@@ -24,7 +24,7 @@ static int chomp_prefix;
 static const char *ls_tree_prefix;
 
 static const  char * const ls_tree_usage[] = {
-	"git ls-tree [-d] [-r] [-t] [-l | --long] [-z] [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev[=<n>]] <tree-ish> [path...]",
+	"git ls-tree <options> <tree-ish> [path...]",
 	NULL
 };
 
-- 
1.6.5.3.283.g4b054
Previous: Stephen BoydNext: Stephen Boyd
Message 6 of 10 in “Migrate ls-tree to parse-opts”
  1. 0/2 Migrate ls-tree to parse-optsStephen Boyd, Nov 14, 2009
  2. 1/2 t3101: test more ls-tree optionsStephen Boyd, Nov 14, 2009
  3. Junio C HamanoNov 17, 2009
  4. Stephen BoydNov 17, 2009
  5. 2/2 ls-tree: migrate to parse-optionsStephen Boyd, Nov 14, 2009
  6. Junio C HamanoNov 17, 2009
  7. Stephen BoydNov 17, 2009
  8. Stephen BoydNov 17, 2009
  9. Junio C HamanoNov 18, 2009
  10. Thiago FarinaNov 18, 2009

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.