git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* `git stash --include-untracked` touches .pack files
@ 2025-08-07  2:27 johnkw
  2025-08-11  9:10 ` Patrick Steinhardt
  0 siblings, 1 reply; 2+ messages in thread
From: johnkw @ 2025-08-07  2:27 UTC (permalink / raw)
  To: git

`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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-11  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07  2:27 `git stash --include-untracked` touches .pack files johnkw
2025-08-11  9:10 ` Patrick Steinhardt

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).