response
authorJoey Hess <joeyh@joeyh.name>
Tue, 1 Apr 2025 13:36:09 +0000 (09:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 1 Apr 2025 13:36:09 +0000 (09:36 -0400)
doc/bugs/git-annex_should_not___34__annex__34___in_git-annex_branch/comment_1_57b1cdf70619440f7db450a48cf3f558._comment [new file with mode: 0644]

diff --git a/doc/bugs/git-annex_should_not___34__annex__34___in_git-annex_branch/comment_1_57b1cdf70619440f7db450a48cf3f558._comment b/doc/bugs/git-annex_should_not___34__annex__34___in_git-annex_branch/comment_1_57b1cdf70619440f7db450a48cf3f558._comment
new file mode 100644 (file)
index 0000000..542e45e
--- /dev/null
@@ -0,0 +1,21 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2025-04-01T13:07:03Z"
+ content="""
+Adding a large file to git just because the git-annex branch is currently
+checked out seems like it would be a large footbomb. That is generally
+harder to recover from than adding a file to the annex and then realizing
+it needs to be added to git instead.
+
+Since git generally allows switching branches with new files
+staged. It would be entirely reasonable to check out the git-annex branch
+after adding a new annexed file but before committing it.
+And checking out the git-annex branch, `git-annex add` of a large file
+without committing it, then switching back to the main branch and committing
+there is also possible if someone wants to do that for some reason.
+
+Since manual commits to the git-annex branch need extra steps anyway
+(eg removing .git/annex/index or committing using it instead of the usual
+index file), I don't see much point in refining it.
+"""]]