]> dgit.raspbian.org Git - git-annex.git/commitdiff
comment and retitle
authorJoey Hess <joeyh@joeyh.name>
Mon, 3 Jan 2022 17:48:19 +0000 (13:48 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 3 Jan 2022 17:48:19 +0000 (13:48 -0400)
doc/bugs/adb_creates_empty_commits_on_import__47__sync.mdwn
doc/bugs/adb_creates_empty_commits_on_import__47__sync/comment_1_522c68d019e5db592e140db9501435ba._comment [new file with mode: 0644]

index de0d91281ce55d9adb03bbf56624bab5ebb5b861..5beee2397e44e4bf22c7c23d03a76e2852c91d7e 100644 (file)
@@ -1,5 +1,7 @@
 ### Please describe the problem.
 
+[[!meta title="import tree creates empty commits"]]
+
 Adb special remote on both "import" and "sync" commands creates empty commits in "main" branch,
 even if files hadn't changed  in either remote or local repo.
 
diff --git a/doc/bugs/adb_creates_empty_commits_on_import__47__sync/comment_1_522c68d019e5db592e140db9501435ba._comment b/doc/bugs/adb_creates_empty_commits_on_import__47__sync/comment_1_522c68d019e5db592e140db9501435ba._comment
new file mode 100644 (file)
index 0000000..6ab8594
--- /dev/null
@@ -0,0 +1,20 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2022-01-03T17:32:34Z"
+ content="""
+I guess you mean commits like "import from foo",
+or perhaps "remote tracking branch". Not adb-specific at all.
+
+The "remote tracking branch" commits are merge commits, so cannot be
+avoided, even though they don't make any apparent changes.
+
+It mostly does manage to avoid making the "import from" commits
+when there is no difference from the previous commit.
+The only case I know of where it does not is in the initial import,
+if the branch was exported first, and then imported. I see an empty 
+"import from" then. Subsequent imports, when there are no changes to the
+tree, do not make a new commit.
+
+Of course, you can rebase out any of these commits if you want to.
+"""]]