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

Re: [PATCH] prohibit "svn dcommit" on remote-tracking-branches

From
EWEric Wong <normalperson@yhbt.net>
Date
Apr 10, 2012, 21:17 UTC
Message-ID
<20120410211732.GB27555@dcvr.yhbt.net>
In-Reply-To
<20120404084234.GA17768@mathe-macht-spass.de>
Christian Engwer <christian.engwer@wwu.de> wrote:
Show 6 quoted lines
> A branch should either be a local copy of an svn branch, or a remote
> tracking branch. After a "git svn dcommit" a remote tracking branch
> could not be synced with the git remote due to the rebase that occured
> during the dcommit. Thus we check for a remote entry in the git config
> for the current branch and prohibit the "dcommit" if such an entry
> exists.
Should there be an option to force/override this?

git-svn predates remote tracking branches, and I've never gotten in the habit using remote tracking branches. I'll wait for others to chime in...

> +        if (s/^\* +//)
> +        {
style, opening brace should be on the same line as the if/while/for:
	if (...) {

Also, indentation should be with hard tabs. (Basically follow existing style conventions when you see them). Thanks.

Previous: Christian EngwerNext: Christian Engwer
Message 2 of 5 in “prohibit "svn dcommit" on remote-tracking-branches”
  1. prohibit "svn dcommit" on remote-tracking-branchesChristian Engwer, Apr 4, 2012
  2. Eric WongApr 10, 2012
  3. Christian EngwerApr 15, 2012
  4. Christian EngwerApr 15, 2012
  5. Jonathan NiederApr 15, 2012

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.