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

[PATCH] archimport: avoid committing on an Arch tag

From
MLMartin Langhoff <martin@catalyst.net.nz>
Date
Sep 4, 2005, 10:55 UTC
Message-ID
<11258313291144-git-send-email-martin@catalyst.net.nz>

Arch tags are full commits (without any changed files) as well. Trust Arch to have put an unchanged tree in place (which seems to do reliably), and just add a tag & new branch. Speeds up Arch imports significantly, and leaves history in a much saner state.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
---
 git-archimport-script |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
55f05e4d4ab662caff10437bdd4de7e8b87f30e0
diff --git a/git-archimport-script b/git-archimport-script
--- a/git-archimport-script
+++ b/git-archimport-script
@@ -227,6 +227,14 @@ foreach my $ps (@psets) {
             
             # find where we are supposed to branch from
             `git checkout -b $ps->{branch} $branchpoint`;
+
+            # If we trust Arch with the fact that this is just 
+            # a tag, and it does not affect the state of the tree
+            # then we just tag and move on
+            tag($ps->{id}, $branchpoint);
+            ptag($ps->{id}, $branchpoint);
+            print " * Tagged $ps->{id} at $branchpoint\n";
+            next;
         } 
         die $! if $?;
     } 
Message 1 of 1 in “archimport: avoid committing on an Arch tag”
  1. archimport: avoid committing on an Arch tagMartin Langhoff, Sep 4, 2005

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.