From: Jay Soffian Date: Fri, 29 Feb 2008 22:40:36 GMT Subject: Re: Which freedesktop.org "design flaws" in git are still relevant? Message-ID: <76718490802291440x60896c93i26d8d0c2cf5678b2@mail.gmail.com> In-Reply-To: On Fri, Feb 29, 2008 at 4:58 PM, Daniel Barkalow wrote: > I wonder if it would be nice to have per-branch aliases, so that you > could have "git update" do whatever is appropriate to update this > particular branch, whether it be "git pull --no-commit" or "git reset > --hard origin/next && git merge" or "git rebase". Well, you effectively have this via branch.*.{merge,mergeoptions,rebase,remote}. e.g.: To effect fetch + non-committing merge: branch..remote = origin branch..merge = refs/heads/ branch..mergeoptions = --no-commit To effect fetch + rebasing: branch..remote = origin branch..merge = refs/heads/ branch..rebase = true (Not sure if there is a way to get "rebase -m" though...) To effect reset --hard origin/next, add another fetch line to your remote. e.g.: [remote "origin"] url = git://git.kernel.org/pub/scm/git/git.git fetch = +refs/heads/*:refs/remotes/origin/* fetch = refs/heads/pu:/refs/heads/pu-readonly Now "git pull" does the right thing whichever branch I'm on. j.