Re: [RFC PATCH v2 11/12] dir: move is_empty_file() from builtin/am.c to dir.c and make it public
- From
Stefan Beller <sbeller@google.com>
- Date
- Aug 2, 2018, 20:50 UTC
- Message-ID
- <CAGZ79kYpsYbg8nkE+8hTPM=Bg_3-p3EzoRfJ1y7f+Dz-3hT-HA@mail.gmail.com>
- In-Reply-To
- <20180802134634.10300-12-ao2@ao2.it>
On Thu, Aug 2, 2018 at 6:47 AM Antonio Ospite <ao2@ao2.it> wrote:
Show 5 quoted lines
> > The is_empty_file() function can be generally useful, move it to dir.c > and make it public. > > Signed-off-by: Antonio Ospite <ao2@ao2.it>
Makes sense,
Thanks, Stefan
Show 8 quoted lines
> +++ b/dir.c > @@ -2412,6 +2412,22 @@ int is_empty_dir(const char *path) > return ret; > } > > +/** > + * Returns 1 if the file is empty or does not exist, 0 otherwise. > + */
Please move the comment to the header instead. /* possibly as a oneliner ? */