]> git.cworth.org Git - notmuch-wiki/commitdiff
give an expanded version of nmbug example
authorDavid Bremner <bremner@unb.ca>
Sat, 12 Nov 2011 05:48:49 +0000 (00:48 -0500)
committerDavid Bremner <bremner@unb.ca>
Sat, 12 Nov 2011 05:48:49 +0000 (00:48 -0500)
show the use of status, and fetch+merge in place of pull

nmbug.mdwn

index 43290b200f37a66cd107d2da9676da16be8915fb..2b217cc115fe9ab3e3929124ab37349aae28fd47 100644 (file)
@@ -13,7 +13,7 @@
 
     git clone --bare git://pivot.cs.unb.ca/nmbug.git $HOME/.nmbug
 
-## Using nmbug
+## Using nmbug, simple example
 
     # get the latest version of the tags
     $ nmbug pull
     
     $ notmuch tag +notmuch::patch $id
     
-    # optionally inspect your changes
-    $ nmbug status      
-    A   tags/$id/patch
-    
     # write the tag changes from the notmuch
     $ nmbug commit
+
+## Using nmbug, doing the same thing with more steps
+
+    # get the latest version of the tags
+    $ nmbug fetch
+
+    # Optionally inspect the fetched changes
+
+    $ nmbug status      
+    a   tags/id1/patch
+    d   tags/id2/pushed     
+    
+    # merge the fetched tags into notmuch
+    $ nmbug merge
     
+    # observe status is clear now,
+    $ nmbug status
+
+    # make the tag changes
+    $ notmuch tag +notmuch::patch id
+
+    # double checkout your changes
+    $ nmbug status
+    A tags/id/patch
+    
+    # write the tag changes 
+    $ nmbug commit
+
 ## Submitting tags.
 
    For the moment, we are using a central repo, hosted at