git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-pull-branch script
@ 2005-06-27 12:27 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2005-06-27 12:27 UTC (permalink / raw)
  To: Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]


I've attached the 1-line git-pull-branch script that I just whipped 
together, in case anybody finds it useful.

On occasion, I need to pull one branch into another branch, inside the 
same repo.  For this case, the objects are already present, so we can 
skip the git-fetch-script step of git-pull-script completely.  I also 
modify the commit message so that we log the fact that we pulled a branch.



[-- Attachment #2: git-pull-branch --]
[-- Type: text/plain, Size: 59 bytes --]

#!/bin/sh

git-resolve-script HEAD $1 "`pwd` branch '$1'"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-27 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 12:27 git-pull-branch script Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).