]> git.phdru.name Git - git-wiki.git/commitdiff
PEP-8 recommends two spaces before inline comment
authorOleg Broytman <phd@phdru.name>
Tue, 28 Jun 2016 19:53:58 +0000 (22:53 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 28 Jun 2016 19:53:58 +0000 (22:53 +0300)
pep-103.txt

index f9388f7017880049fcde014dbafa25fa8e3f3291..eae4ff757681af75e11d5837e3b5753737edf71b 100644 (file)
@@ -532,11 +532,11 @@ For example, if you want to reset the branch ``master`` back to the
 original commit but preserve two commits created in the current branch
 do something like::
 
 original commit but preserve two commits created in the current branch
 do something like::
 
-    $ git branch save-master # create a new branch saving master
-    $ git reflog # find the original place of master
+    $ git branch save-master  # create a new branch saving master
+    $ git reflog  # find the original place of master
     $ git reset $COMMIT_ID
     $ git cherry-pick save-master~ save-master
     $ git reset $COMMIT_ID
     $ git cherry-pick save-master~ save-master
-    $ git branch -D save-master # remove temporary branch
+    $ git branch -D save-master  # remove temporary branch
 
 
 git revert: revert a commit
 
 
 git revert: revert a commit
@@ -888,7 +888,7 @@ has an option ``-O`` that passes a list of names of the found files to
 a program; default program for ``-O`` is a pager (usually ``less``),
 but you can use your editor::
 
 a program; default program for ``-O`` is a pager (usually ``less``),
 but you can use your editor::
 
-    $ git grep -Ovim # but not -O vim
+    $ git grep -Ovim  # but not -O vim
 
 BTW, if git is instructed to use ``less`` as the pager (i.e., if pager
 is not configured in git at all it uses ``less`` by default, or if it
 
 BTW, if git is instructed to use ``less`` as the pager (i.e., if pager
 is not configured in git at all it uses ``less`` by default, or if it