Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform the advice only if the file is into a git repository #6

Merged
merged 1 commit into from Nov 19, 2013
Merged

Perform the advice only if the file is into a git repository #6

merged 1 commit into from Nov 19, 2013

Conversation

Konubinix
Copy link

When the file made read only is not in a git repository, doing anything for git annex makes no sense.

Moreover, the call to git annex add makes emacs hang for some seconds. This is really annoying.

Thus, I propose to avoid doing anything when not in a git repository by encapsulating the code by the following:

(when (string=
(vc-backend buffer-file-name)
"Git"
)
...
)

jwiegley added a commit that referenced this pull request Nov 19, 2013
Perform the advice only if the file is into a git repository
@jwiegley jwiegley merged commit a37648a into jwiegley:master Nov 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants