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

Re: builtin-add.c patch

From
APAlexander Potashev <aspotashev@gmail.com>
Date
Dec 10, 2008, 14:26 UTC
Message-ID
<20081210142632.GA4137@myhost>
In-Reply-To
<200812101238.mBACcWQk023480@axiom-developer.org>
Hello, Tim!
On 06:38 Wed 10 Dec     , daly@axiom-developer.org wrote:
Show 13 quoted lines
> A trivial patch to fix a typo -- Tim Daly
> 
> 
> diff --git a/builtin-add.c b/builtin-add.c
> index ea4e771..5f2e68b 100644
> --- a/builtin-add.c
> +++ b/builtin-add.c
> @@ -23,7 +23,7 @@ static void fill_pathspec_matches(const char **pathspec, char *seen, int specs)
>  	int num_unmatched = 0, i;
>  
>  	/*
> -	 * Since we are walking the index as if we are warlking the directory,
> +	 * Since we are walking the index as if we are walking the directory,

We probably should use subjunctive here: "Since we are walking the index as if we _were_ walking the directory,".

Are there any native English speakers? :)
Show 7 quoted lines
>  	 * we have to mark the matched pathspec as seen; otherwise we will
>  	 * mistakenly think that the user gave a pathspec that did not match
>  	 * anything.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

It's also better to change the commit message, one should be able to realize from it that the change is a typo fix in comments.

Previous: daly@axiom-developer.orgNext: Boyd Stephen Smith Jr.
Message 2 of 8 in “builtin-add.c patch”
  1. daly@axiom-developer.orgDec 10, 2008
  2. Alexander PotashevDec 10, 2008
  3. Boyd Stephen Smith Jr.Dec 10, 2008
  4. rootDec 10, 2008
  5. Fix typo in comment in builtin-add.cAlexander Potashev, Dec 10, 2008
  6. Junio C HamanoDec 10, 2008
  7. rootDec 10, 2008
  8. Alexander PotashevDec 10, 2008

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.