{"thread":{"id":"1032","subject":"git-pull-branch script","startedAt":"2005-06-27T12:27:58Z","lastAt":"2005-06-27T12:27:58Z","messageCount":1,"participants":["Jeff Garzik"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"5299","messageId":"42BFF0CE.1040209@pobox.com","threadId":"1032","inReplyTo":null,"subject":"git-pull-branch script","fromName":"Jeff Garzik","fromEmail":"jgarzik@pobox.com","sentAt":"2005-06-27T12:27:58Z","receivedAt":"2005-06-27T12:27:58Z","isPatch":false,"sender":{"key":"jgarzik@pobox.com","avatar":null},"body":"\nI've attached the 1-line git-pull-branch script that I just whipped \ntogether, in case anybody finds it useful.\n\nOn occasion, I need to pull one branch into another branch, inside the \nsame repo.  For this case, the objects are already present, so we can \nskip the git-fetch-script step of git-pull-script completely.  I also \nmodify the commit message so that we log the fact that we pulled a branch.\n\n\n\n\n#!/bin/sh\n\ngit-resolve-script HEAD $1 \"`pwd` branch '$1'\"\n\n"}]}