Vinzent03/obsidian-git

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

Closed this issue · 0 comments

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