GramEditor/gram
37
982
Fork
You've already forked gram
88

Gram Re-opens source file with .orig extension after git merge #369

Open
opened 2026年07月09日 12:31:23 +02:00 by msrd0 · 1 comment
Contributor
Copy link

Current Behaviour

Assume I have Gram and one file open, let's call it lib.rs.

Then assume I do weird things like going to a terminal and typing things like git fetch, git rebase origin/main, git mergetool and git rebase --continue.

When I return to Gram, I am confused because I see weird things like <<<<<<< HEAD in the open file. Then I notice the file name has changed to lib.rs.orig.

Expected Behaviour

Gram keeps the file lib.rs open and doesn't suddenly show lib.rs.orig instead.

OS

Fedora 44, Sway, Gram 3.0.1 (546708a188) from the Codeberg Packages

## Current Behaviour Assume I have Gram and one file open, let's call it `lib.rs`. Then assume I do weird things like going to a terminal and typing things like `git fetch`, `git rebase origin/main`, `git mergetool` and `git rebase --continue`. When I return to Gram, I am confused because I see weird things like `<<<<<<< HEAD` in the open file. Then I notice the file name has changed to `lib.rs.orig`. ## Expected Behaviour Gram keeps the file `lib.rs` open and doesn't suddenly show `lib.rs.orig` instead. ## OS Fedora 44, Sway, Gram 3.0.1 (546708a188438dc98863eafa85afc08ddec2bc17) from the Codeberg Packages
Owner
Copy link

I suspect that what's happening is that lib.rs is being renamed to lib.rs.orig and since Gram tracks files using inotify / inodes, it considers that file to be the one it's viewing. I haven't seen this happen on Mac OS so things seem to work differently there..

I suspect that what's happening is that `lib.rs` is being renamed to `lib.rs.orig` and since Gram tracks files using inotify / inodes, it considers that file to be the one it's viewing. I haven't seen this happen on Mac OS so things seem to work differently there..
Sign in to join this conversation.
main
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#369
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?