{"thread":{"id":"1724","subject":"[PATCH] archimport: avoid committing on an Arch tag","startedAt":"2005-09-04T10:55:29Z","lastAt":"2005-09-04T10:55:29Z","messageCount":1,"participants":["Martin Langhoff"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"8052","messageId":"11258313291144-git-send-email-martin@catalyst.net.nz","threadId":"1724","inReplyTo":null,"subject":"[PATCH] archimport: avoid committing on an Arch tag","fromName":"Martin Langhoff","fromEmail":"martin@catalyst.net.nz","sentAt":"2005-09-04T10:55:29Z","receivedAt":"2005-09-04T10:55:29Z","isPatch":true,"sender":{"key":"martin@laptop.org","avatar":null},"body":"Arch tags are full commits (without any changed files) as well. Trust Arch\nto have put an unchanged tree in place (which seems to do reliably), and\njust add a tag & new branch. Speeds up Arch imports significantly, and leaves\nhistory in a much saner state.\n\nSigned-off-by: Martin Langhoff <martin@catalyst.net.nz>\n\n\n---\n\n git-archimport-script |    8 ++++++++\n 1 files changed, 8 insertions(+), 0 deletions(-)\n\n55f05e4d4ab662caff10437bdd4de7e8b87f30e0\ndiff --git a/git-archimport-script b/git-archimport-script\n--- a/git-archimport-script\n+++ b/git-archimport-script\n@@ -227,6 +227,14 @@ foreach my $ps (@psets) {\n             \n             # find where we are supposed to branch from\n             `git checkout -b $ps->{branch} $branchpoint`;\n+\n+            # If we trust Arch with the fact that this is just \n+            # a tag, and it does not affect the state of the tree\n+            # then we just tag and move on\n+            tag($ps->{id}, $branchpoint);\n+            ptag($ps->{id}, $branchpoint);\n+            print \" * Tagged $ps->{id} at $branchpoint\\n\";\n+            next;\n         } \n         die $! if $?;\n     } \n"}]}