Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2022 17:27:44 +0200
From:      Kurt Jaeger <pi@freebsd.org>
To:        Ashish SHUKLA <ashish@freebsd.org>
Cc:        freebsd-git@freebsd.org
Subject:   Re: git wants to commit more files than expected ?
Message-ID:  <YvfC8Inx6FtrlaT6@fc.opsec.eu>
In-Reply-To: <99af6a44013b44d7ec1196bc3809e3aa@FreeBSD.org>
References:  <Yvd0ziIpQpZTjVyd@fc.opsec.eu> <99af6a44013b44d7ec1196bc3809e3aa@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

> > But if I run a git commit, additional two files turn up:
> > 
> > # Changes to be committed:
> > #       modified:   archivers/py-borgbackup/Makefile
> > #       new file:   archivers/py-borgbackup/files/patch-setup.py
> > #       modified:   print/pdf-tools/Makefile
> > #       modified:   print/pdf-tools/distinfo
> > 
> > Why isn't git status not reporting the two pdf-tools files,
> > but git commit is ?
> 
> Could you share the 'git commit' command-line that you're using ?

It was this:

git commit --amend --author='Jose G. Juanino <jjuanino@gmail.com>' archivers/py-borgbackup

> If I've to guess then you're probably including the '-a' switch of git 
> commit. If yes, then please don't include it.

I now tried this:

git commit --author='Jose G. Juanino <jjuanino@gmail.com>' archivers/py-borgbackup

and it worked! Thanks!

-- 
pi@FreeBSD.org         +49 171 3101372                  Now what ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YvfC8Inx6FtrlaT6>