* Makefile: switch to a specific Git branch before update
@ 2013-12-14 10:33 Achim Gratz
2013-12-22 23:12 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Achim Gratz @ 2013-12-14 10:33 UTC (permalink / raw)
To: emacs-orgmode
In a number of recent discussions it transpired that some people expect
to automatically be switched to a specific Git branch when updating.
I've added this as an option to the standard Makefile. Simply define
GIT_BRANCH (either on the command line or in local.mk) to determine
which branch you want to update. If this variable is left undefined,
you stay on the current branch as before.
So, this definition in local.mk
GIT_BRANCH = master
would have the update targets operate on the master branch, regardless
of which branch was checked out before the update. You can still update
a different branch by overriding that variable like
make GIT_BRANCH=my_branch update
in this case or just stay on your checked-out branch using
make GIT_BRANCH= update
if you wish. If you are working on several branches, I recommend to
leave this definition out of local.mk however and just use the command
line override when necessary.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Makefile: switch to a specific Git branch before update
2013-12-14 10:33 Makefile: switch to a specific Git branch before update Achim Gratz
@ 2013-12-22 23:12 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-12-22 23:12 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-orgmode
Achim Gratz <Stromeko@nexgo.de> writes:
> In a number of recent discussions it transpired that some people expect
> to automatically be switched to a specific Git branch when updating.
>
> I've added this as an option to the standard Makefile.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-22 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 10:33 Makefile: switch to a specific Git branch before update Achim Gratz
2013-12-22 23:12 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).