emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Makefile: switch to a specific Git branch before update
Date: Sat, 14 Dec 2013 11:33:18 +0100	[thread overview]
Message-ID: <87ppozafip.fsf@Rainer.invalid> (raw)


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

             reply	other threads:[~2013-12-14 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 10:33 Achim Gratz [this message]
2013-12-22 23:12 ` Makefile: switch to a specific Git branch before update Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppozafip.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).