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

[question] When an identical file is added

From
ABA bughunter <a_bughunter@proton.me>
Date
Nov 24, 2024, 02:24 UTC
Message-ID
<lSW86a4L1xWHfSTWIq732o26YCBCIN_B0rd6B1bCP8VIAY8d1V9pD1WEcCyW7Wyw2T14VVYka5XMTwJGFZEKcovBYIgOBUO5lbPWQ44cIfM=@proton.me>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
[question] When an identical file is added

While objects are immutable, if I do mixed mode reset switching to an old-commit under HEAD then 'add' the same files again Q. Will it keep two copies as objects? A. No because when an identical file is added the object file is identical. These become tree entries pointing to the same object. Q. May this overwrite the same object file because it is the same file? or because it is immutable will it reuse the old object file? A. When an identical file is added the old object shall be _ANSWER_HERE_

from A_bughunter@proton.me
Sent with Proton Mail secure email.
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wnUEARYKACcFgmdCjlAJkKkWZTlQrvKZFiEEZlQIBcAycZ2lO9z2qRZlOVCu 8pkAADfCAP0fuC5Rc0gHALam7YkQHjZg54dGrnEUa6tZJZpSzNuiBgEA5c0a G+ZwfchdHP0gMPwHx4+TBL6LhW7ogj7u2IubQA4= =xVzR -----END PGP SIGNATURE-----

Next: Konstantin Ryabitsev
Message 1 of 2 in “[question] When an identical file is added”
  1. A bughunterNov 24, 2024
  2. Konstantin RyabitsevNov 26, 2024

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.