X-Git-Url: https://git.cworth.org/git?p=nogit;a=blobdiff_plain;f=README;h=bae558f7e2e9283bf55694e1578fceadbf227c99;hp=fef3192bf4b256a07ea8c1261e20adc18c172548;hb=HEAD;hpb=69cfcd94611b452b910728d5a013052da9fef883 diff --git a/README b/README index fef3192..bae558f 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ nogit: Using git to track files without the user using git Summary ======= Let's see, nogit is a very simple tool that uses git under the hood to -allow for collaboration on files, but without requiring the the +allow for collaboration on files, but without requiring the collaborators to invoke git commands. Any time a user might invoke "git commit", or "git push", or "git pull", etc. the user instead just invokes "nogit sync". And the user will not be prompted to fill out a @@ -74,14 +74,16 @@ save it: ; and recurse. (defun nogit-sync-if-configured () (interactive) - (if (and - (buffer-file-name) - (file-exists-p (format "%s/../.nogit" (buffer-file-name))) - (not (boundp 'in-nogit-sync)) - ) - (let ((in-nogit-sync t)) - (message (substring (shell-command-to-string "nogit sync") 0 -1)) - (revert-buffer nil t) + (save-match-data + (if (and + (buffer-file-name) + (file-exists-p (format "%s/../.nogit" (buffer-file-name))) + (not (boundp 'in-nogit-sync)) + ) + (let ((in-nogit-sync t)) + (message (substring (shell-command-to-string "nogit sync") 0 -1)) + (revert-buffer nil t) + ) ) ) )