[PATCH 0/4] nmbug without an upstream repository (and init)
W. Trevor King
wking at tremily.us
Sun Jul 6 13:40:18 PDT 2014
Currently 'nmbug status' errors out if there is no @{upstream} branch.
To support folks who are just using nmbug locally, add exit code
checking and stderr catching to handle this case appropriately. The
final commit isn't closely related, but it allows folks to easily
initialize nmbug repositories (e.g. if they want to version-controll
*all* their tags, or tags for a different project). After this
series, you can run something like:
export NMBGIT=/tmp/nmbug
nmbug init
export NMBPREFIX=''
nmbug status
nmbug commit
to create a new repository with all your tags. Replace the NMBPREFIX
with something else (e.g. NMBPREFIX='myproject::') to only track tags
for a particular project. You could also define aliases to set the
appropriate environment variables on the fly:
$ alias mpbug='NMBGIT=/tmp/nmbug NMBPREFIX="myproject::" nmbug'
$ mpbug status
W. Trevor King (4):
nmbug: Add a git_with_status helper function
nmbug: Handle missing @upstream in is_unmerged
nmbug: Catch stderr in is_unmerged
nmbug: Add an 'init' command
devel/nmbug/nmbug | 49 +++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 43 insertions(+), 6 deletions(-)
--
1.9.1.353.gc66d89d
More information about the notmuch
mailing list