From: "Michal Suchánek" <msuchanek@suse•de>
To: Isaac Oscar Gariano <isaacoscar@live•com.au>
Cc: "git@vger•kernel.org" <git@vger•kernel.org>
Subject: Re: [feature request] allow directly committing untracked files
Date: Mon, 25 Aug 2025 09:45:05 +0200 [thread overview]
Message-ID: <aKwUgSt2MnfRX4K7@kitsune.suse.cz> (raw)
In-Reply-To: <SYBP282MB2963ABA12BD14594F62E47B08C3CA@SYBP282MB2963.AUSP282.PROD.OUTLOOK.COM>
On Sat, Aug 23, 2025 at 06:45:30AM +0000, Isaac Oscar Gariano wrote:
> I often use 'git commit some-file -m 'some message'" to quickly make a commit, but this is annoying as it doesn't work if some-file is untracked, you first have to do 'git add some-file'.
> It would also be nice to do this with the `-a` option as well.
> Is there any reason why git does not let you do this?
> Would people be open to me making a patch that ads this? Would it need to be behind an option for backwards-compatibility?
Hello,
if the exposed index gets in your way you can consider some porcelain
that hides the index, such as jujutsu.
Thanks
Michal
prev parent reply other threads:[~2025-08-25 7:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-23 6:45 [feature request] allow directly committing untracked files Isaac Oscar Gariano
2025-08-23 15:43 ` brian m. carlson
2025-08-25 7:45 ` Michal Suchánek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aKwUgSt2MnfRX4K7@kitsune.suse.cz \
--to=msuchanek@suse$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
--cc=isaacoscar@live$(echo .)com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox