Vinzent03 / obsidian-git

Integrate Git version control with automatic backup and other advanced features in Obsidian.md
MIT License
6.93k stars 296 forks source link

[Bug]: Renaming a file without connections is not picked up by auto backup mechanism #765

Closed sirEven closed 2 months ago

sirEven commented 2 months ago

Describe the bug

When changing the name of a file that has no connections whatsoever (not towards it, not from it) it correctly results in a deleted file and a newly added file, that is untracked. However from here on, auto backup does not pick up on it, as the newly added file remains untracked.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No response

Steps to reproduce

1) setup git plugin to automatically backup (let's say every minute) 2) create a file and back it up manually 3) rename that file and wait a minute... 4) after that minute passes, the file is still untracked and does not get staged 5) you can now change the content of that file - which will be picked up and trigger an auto backup 1 min later

Expected Behavior

at step 4) I expect the auto backup already syncing the file name change to github, without having to change the files content.

remaining_state

Addition context

No response

Operating system

macOS

Installation Method

None

Plugin version

2.26.0