Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Recreate Disaster
Recreate Disaster [message #1862249] Mon, 20 November 2023 17:16 Go to next message
Eclipse UserFriend
I'm trying to recreate the exact sequence I used for the repo shown in Fig A. The original intent of this repo was to append each Commit Message to the Notes.txt file (added at commit f447). That way I could see the effect of each commit on each branch.

This repo never had an Eclipse project so Notes.txt in the file view didn't automatically update when checking out a different branch so it's likely I sometimes pressed "Ignore" instead of "Replace" (top right of Fig A) when editing that file. This means that file didn't record the actual commit sequence. In other words, the Commit Message I added to that file could have been appended to the last entry in Notes.txt from a different branch. One reason I want to duplicate this repo is to prove this theory.

I believe the Reflog tells you each time a branch is checked out, but unfortunately, entries for these commits expired.

Branches are simply pointers? The big question is how can I know which branch in this repo was checked out at each commit? The Blue text in Fig A is my best guess so please verify. I have no idea on commit 80c2 or 6545. Selecting a commit does show the parents/children (Fig B) but I don't understand how that helps.

index.php/fa/43742/0/
Re: Recreate Disaster [message #1863009 is a reply to message #1862249] Wed, 10 January 2024 16:15 Go to previous message
Eclipse UserFriend
Using EGit on repos which aren't imported using Eclipse projects isn't very smooth since EGit relies on events from Eclipse platform which aren't available
for files which aren't under a project.

Yep, branches are just pointers to commits. Git reflogs track how branches evolve.
If a reflog expired this information is lost and cannot be reconstructed.
If you want to keep this information configure the git repo to not expire reflogs.
Previous Topic:GIT LFS with Github and https authentication
Next Topic:Git hooks in eclipse
Goto Forum:
  


Current Time: Sat May 17 01:45:27 EDT 2025

Powered by FUDForum. Page generated in 0.04616 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top