You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving a note to a folder leaves the GitJournal in an inconsistent state, where the original file stays in the repository, but is not visible anymore in the app.
This seems to be reproducible consistently:
Create a note in the root folder
Notice that it is added correctly
git commit - adding the note
$ git show HEAD~2
commit 42f397861d177167786d65e65d0cca94ad0b8f04
Author: GitJournal <[email protected]>
Date: Mon Jan 29 13:13:20 2024 +0000
Added Note Test note that will be moved.md
diff --git a/Test note that will be moved.md b/Test note that will be moved.md
new file mode 100644
index 0000000..04ec36e
--- /dev/null+++ b/Test note that will be moved.md@@ -0,0 +1,7 @@+---+created: 2024-01-29T13:13:11+00:00+modified: 2024-01-29T13:13:20+00:00+---++# Test note that will be moved+
Move the note to a folder in the app
Notice that while GitJournal only shows 1 note, a new note was created in the repository, instead of moving the file
git commit - moving the note
❯ git show HEAD~1
commit 43ff40d1c392b5b5d7f79150f15597469be1f97b
Author: GitJournal <[email protected]>
Date: Mon Jan 29 13:13:30 2024 +0000
Moved Note Test note that will be moved.md -> Linux/Test note that will be moved.md
diff --git a/Linux/Test note that will be moved.md b/Linux/Test note that will be moved.md
new file mode 100644
index 0000000..04ec36e
--- /dev/null+++ b/Linux/Test note that will be moved.md@@ -0,0 +1,7 @@+---+created: 2024-01-29T13:13:11+00:00+modified: 2024-01-29T13:13:20+00:00+---++# Test note that will be moved+
We now have 2 notes in the repository, but only 1 shows up in GitJournal.
Delete the note from GitJournal
The note is not visible in GitJournal anymore, but the md file is still in the root of the repository
git commit - deleting the note
❯ git show HEAD | less
commit e12cc64b25600c02f8f6ecb02c446788405a1a12
Author: GitJournal <[email protected]>
Date: Mon Jan 29 13:15:06 2024 +0000
Removed Note Linux/Test note that will be moved.md
diff --git a/Linux/Test note that will be moved.md b/Linux/Test note that will be moved.md
deleted file mode 100644
index 04ec36e..0000000
--- a/Linux/Test note that will be moved.md+++ /dev/null@@ -1,7 +0,0 @@-----created: 2024-01-29T13:13:11+00:00-modified: 2024-01-29T13:13:20+00:00------# Test note that will be moved-
Moving a note to a folder leaves the GitJournal in an inconsistent state, where the original file stays in the repository, but is not visible anymore in the app.
This seems to be reproducible consistently:
git commit - adding the note
git commit - moving the note
git commit - deleting the note
Logs of the creation + move:
Logs
The text was updated successfully, but these errors were encountered: