From: Jay Soffian Date: Tue, 19 Feb 2008 13:42:32 GMT Subject: Re: [PATCH] branch: optionally setup branch.*.merge from upstream local branches Message-ID: <76718490802190542l7fb58d58l29d7b18fb62fd8e2@mail.gmail.com> In-Reply-To: On Feb 19, 2008 5:55 AM, Johannes Schindelin wrote: > > On Mon, 18 Feb 2008, Jay Soffian wrote: > > > > > if (!tracking.matches) { > > if (track != BRANCH_TRACK_ALWAYS) > > return 1; > > tracking.matches = 1; > > tracking.src = xstrdup(orig_ref); > > } > > Ah, yes. But I still maintain that xstrdup()ing orig_ref only to free it > later is ugly. Why not have the "tracking.src ? tracking.src : orig_ref" > as I suggested? Sorry, I'd missed that. Good idea, will do. j.