-
Notifications
You must be signed in to change notification settings - Fork 8
Using --to-git
breaks git diff
functionality
#195
Comments
How exactly did you call Generally it probably boils down to the Ultimately it's a datalad issue though (as in not hirni itself) w/o an incredibly obvious solution. The However, if there's nothing to discuss about the default config set by hirni from your point of view, a discussion of a potential change of behavior in |
There is no second datalad save call in this. I did not save the file to datalad at all after editing. With "safe changes" (sorry about the typo) I just mean save the change in the editor. And right after closing the editor |
Just as an additional remark: I first thought this was a datalad issue in general but I did not manage to reproduce it with another type of dataset. I tried: no configuration template and the yoda template. That is when I suspected it has something to do with the hirni template and that is also why I opened a issue here.
This behaviour I encountered as well and you make a good point here. While this seems to not be so straight forward, it would quite improve usability.
This you can judge best, so feel free to do so. |
Oof. I have a suspicion (where it's actually git-diff itself that triggers the change), but will have a closer look and try to reproduce. Can you give me the output of |
I always try to reproduce the problem in a clean virtual environment with the newest datalad installation. That's why it is always in /tmp :-) Here you go:
|
I try to add a file to git instead of git-annex using the
--to-git
flag. This works fine for the initial commit but as soon as I modify the file,git diff
does not work anymore because it claims that the file is stored in git-annex.This only happens when creating the dataset using the hirni configuration template. When using a dataset created without a configuration template this problem does not exist and it works as expected.
Minimal example:
_rules
functiongit diff
does not work anymore because the file is clamed to be stored in git-annex now:The text was updated successfully, but these errors were encountered: