From nobody Sat Aug 13 15:27:44 2022 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M4kv61dB2z4Z4Kh for ; Sat, 13 Aug 2022 15:27:46 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from fc.opsec.eu (fc.opsec.eu [IPv6:2001:14f8:200:4::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M4kv52qfJz47W7; Sat, 13 Aug 2022 15:27:45 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by fc.opsec.eu with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oMt3A-000DT8-GU; Sat, 13 Aug 2022 17:27:44 +0200 Date: Sat, 13 Aug 2022 17:27:44 +0200 From: Kurt Jaeger To: Ashish SHUKLA Cc: freebsd-git@freebsd.org Subject: Re: git wants to commit more files than expected ? Message-ID: References: <99af6a44013b44d7ec1196bc3809e3aa@FreeBSD.org> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99af6a44013b44d7ec1196bc3809e3aa@FreeBSD.org> X-Rspamd-Queue-Id: 4M4kv52qfJz47W7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 2001:14f8:200:4::4 is neither permitted nor denied by domain of pi@freebsd.org) smtp.mailfrom=pi@freebsd.org X-Spamd-Result: default: False [-2.10 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE]; MLMMJ_DEST(0.00)[freebsd-git@freebsd.org]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; FREEFALL_USER(0.00)[pi]; ARC_NA(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N 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 ' 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 ' archivers/py-borgbackup and it worked! Thanks! -- pi@FreeBSD.org +49 171 3101372 Now what ?