git/list[1] front-page[2] threads[3] people[4] search[5] about
 

`git stash --include-untracked` touches .pack files

From
Jjohnkw <johnkw@gmail.com>
Date
Aug 7, 2025, 02:27 UTC
Message-ID
<2ea19b6b-716b-4736-8dd3-8831056c39f9@gmail.com>

`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: Patrick Steinhardt
Message 1 of 2 in “`git stash --include-untracked` touches .pack files”
  1. johnkwAug 7, 2025
  2. Patrick SteinhardtAug 11, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.