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

Re: [PATCH] improve documentation for some commands that use pathspecs

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 3, 2015, 13:57 UTC
Message-ID
<CACsJy8AW0vj2SWpzocJpXkrgJB93x8Zb1p9YVQZE1SVh4G7COg@mail.gmail.com>
In-Reply-To
<20150331152224.GA16617@kitenet.net>
On Tue, Mar 31, 2015 at 10:22 PM, Joey Hess <joeyh@joeyh.name> wrote:
Show 17 quoted lines
> After being surprised that git-ls-files expands pathspecs, here's a patch
> that would have saved me.
> ---
>  Documentation/git-ls-files.txt | 9 +++++----
>  Documentation/git-ls-tree.txt  | 8 ++++----
>  2 files changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
> index e26f01f..f7a3039 100644
> --- a/Documentation/git-ls-files.txt
> +++ b/Documentation/git-ls-files.txt
> @@ -17,7 +17,7 @@ SYNOPSIS
>                 [--exclude-per-directory=<file>]
>                 [--exclude-standard]
>                 [--error-unmatch] [--with-tree=<tree-ish>]
> -               [--full-name] [--abbrev] [--] [<file>...]
> +               [--full-name] [--abbrev] [--] [<pathspec>...]

Just a note that "git ls-files -h" still says "<file>", from ls_files_usage in builtin/ls-files.c

-- 
Duy
Previous: Duy Nguyen
Message 4 of 4 in “improve documentation for some commands that use pathspecs”
  1. improve documentation for some commands that use pathspecsJoey Hess, Mar 31, 2015
  2. Junio C HamanoMar 31, 2015
  3. Duy NguyenApr 3, 2015
  4. Duy NguyenApr 3, 2015

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.