From: johnkw <johnkw@gmail.com>
To: git@vger.kernel.org
Subject: `git stash --include-untracked` touches .pack files
Date: Wed, 6 Aug 2025 21:27:05 -0500 [thread overview]
Message-ID: <2ea19b6b-716b-4736-8dd3-8831056c39f9@gmail.com> (raw)
`git stash --include-untracked` causes the timestamp to be touched for
some .pack files. It's not always all .pack files, although I don't see
a pattern regarding how some survive the operation with the timestamp
intact. For a given repo it seems consistent though on the .pack files
impacted by the issue.
This breaks backup systems such as rsync, causing pointless churn.
The issue occurs with or without ".keep" files for the ".pack" files in
question.
`git stash` without `--include-untracked` does not have this issue.
The issue occurs with no untracked files actually even in the repo for
`--include-untracked` to take action on.
next reply other threads:[~2025-08-07 2:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 2:27 johnkw [this message]
2025-08-11 9:10 ` `git stash --include-untracked` touches .pack files Patrick Steinhardt
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=2ea19b6b-716b-4736-8dd3-8831056c39f9@gmail.com \
--to=johnkw@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).