-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git history removed? #141
Comments
For reference, here's the last commit from my forked repo that was merged here: |
The history is still there, #91 : The problem is that Github seems to be having trouble following the changes from the file moves and is not assigning the history to where the file currently is. We could use a README.md in in the JProxies folder. Could you write up something there? |
This seems to be where the log should follow through to the old location of the file. 57aead9 |
I sort of (?) repaired the history here: https://github.com/zot/JavaCall.jl/tree/repair-zot
On the current master branch, I will submit an issue to GitHub about producing the same history that Here is my script to create the repair-zot branch: #!/bin/sh
TMPDIR=$(mktemp -d /tmp/JavaCall.jl-XXXX)
echo USING TMPDIR: $TMPDIR
git clone git@github.com:zot/JavaCall.jl.git $TMPDIR
cd $TMPDIR
git branch repair-zot-src 13aa29d619d1e92b28e270806d582522ceff446a
git checkout repair-zot-src
mkdir -p REPAIR CLONE
# Clone doc/index.md, src/gen.jl, and src/proxy.jl -- see https://stackoverflow.com/a/44036771/1026782
git mv doc/index.md CLONE
git commit -m "Clone index.md"
SAVED=`git rev-parse HEAD`
git reset --hard HEAD^
git mv doc/index.md src/gen.jl src/proxy.jl REPAIR
git commit -m "Move JProxy files"
git merge --no-edit $SAVED
git commit -a -m "merge renames"
git mv CLONE/index.md doc
git commit -m "restore history for index.md"
git branch repair-zot master
git checkout repair-zot
git merge --no-edit repair-zot-src
git commit -a -m "Restore history for JProxy files: stage 1"
git rm JProxies/src/gen.jl JProxies/src/proxy.jl JProxies/doc/index.md
git commit -m "Restore history for JProxy files: stage 2"
mkdir -p JProxies/src JProxies/doc
git mv REPAIR/*.jl JProxies/src
git mv REPAIR/*.md JProxies/doc
git commit -m "Restore history for JProxy files: stage 3"
git cherry-pick -m 1 --strategy recursive -X theirs 57aead9
git cherry-pick --strategy recursive -X theirs 001d4ee
git cherry-pick --strategy recursive -X theirs 9801641 |
Apparently GitHub doesn't support follow :-/ isaacs/github#900 But at least in the repair-zot, branch the history is actually salvageable with the command line and it will suddenly appear on GitHub one day when they get around to it. I'm pretty sure Looks like my script still need a little work, so I'm not ready to request any merges yet though :) |
I think your idea about the README.md is best since it seems like GitHub won't show the history anyway. I'll propose a README.md for you... |
I've dealt with problems like this before at work (and also caused them by renaming and modifying in the same commit). We were using Eclipse, though, and it handles file renaming much better than GitHub. :( |
OK, I made a pull request for the readme, please let me know what you think! |
Guys, somehow the history of my authorship of the JProxy code got removed from the files.
JavaCall.jl/JProxies/src/proxy.jl
Line 1 in 575f451
Can you restore it?
The text was updated successfully, but these errors were encountered: