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

[TopGit PATCH] depend: don't check for tg branch

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 13, 2009, 11:05 UTC
Message-ID
<1231844716-10422-1-git-send-email-trast@student.ethz.ch>

Remove the check in 'tg depend add <branch>' that <branch> is topgit-tracked, as it seems inconsistent with the use of 'tg create <branch> <dependencies>', where the <dependencies> can be arbitrary. This is useful to, e.g., promote a git.git topic branch from master-based to next-based.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
 tg-depend.sh |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/tg-depend.sh b/tg-depend.sh
index ef5f94f..16b7751 100644
--- a/tg-depend.sh
+++ b/tg-depend.sh
@@ -37,8 +37,6 @@ done
 [ -n "$name" ] || die "no branch name specified"
 branchrev="$(git rev-parse --verify "$name" 2>/dev/null)" ||
 	die "invalid branch name: $name"
-baserev="$(git rev-parse --verify "refs/top-bases/$name" 2>/dev/null)" ||
-	die "not a TopGit topic branch: $name"
 
 
 ## Record new dependency
-- 
tg: (3c70506..) t/depend-no-base-check (depends on: master)
Message 1 of 1 in “depend: don't check for tg branch”
  1. depend: don't check for tg branchThomas Rast, Jan 13, 2009

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.