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

Re: [PATCH 1/3] diff-no-index.c read_directory() use is_dot_or_dotdot().

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Mar 19, 2014, 15:21 UTC
Message-ID
<vpqfvmefc41.fsf@anie.imag.fr>
In-Reply-To
<1395242180-4559-1-git-send-email-mandrei.dinu@gmail.com>
> Subject: Re: [PATCH 1/3]
                      ^^^
I guess you meant PATCH v3. 1/3 means that this is the first patch out
of 3.
Andrei Dinu <mandrei.dinu@gmail.com> writes:
Show 5 quoted lines
> Implement read_directory() to use is_dot_or_dotdot() function from dir.h
> instead of strcmp().
>
> Rename read_directory() in read_directory_path() to avoid conflicting with
> read_directory() from dir.h.

Ideally, these should be two distinct patches. One to rename read_directory (no real change), and the next one to use is_dot_or_dotdot.

You may want to take this as an exercice to learn how to split a patch, but I won't insist on that.

Other than that, the patch looks good.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Andrei Dinu
Message 2 of 2 in “diff-no-index.c read_directory() use is_dot_or_dotdot().”
  1. 1/3 diff-no-index.c read_directory() use is_dot_or_dotdot().Andrei Dinu, Mar 19, 2014
  2. Matthieu MoyMar 19, 2014

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.