Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.56k stars 113 forks source link

Referring repos with their git-dir instead of their work-tree. #614

Closed ysalmon closed 1 year ago

ysalmon commented 1 year ago

Also sets up display routines to avoid displaying a repo as ".git" : we display the penultimate component of the path when the last one is ".git". This assumes nobody creates a repo in /.git.

This closes #612.

This needs review, especially wrt opening "remote" repos, which I did not test.

One will need to purge one's repo history on upgrading to this version.

Murmele commented 1 year ago

This needs review, especially wrt opening "remote" repos, which I did not test.

What do you mean here?

ysalmon commented 1 year ago

Gittyup has an interface to connect to repo from Github, GitLab, etc. I did not check if my patch affects this.

Murmele commented 1 year ago

I will check it out as next. Sorry for having to wait. Quite busy at the moment

ysalmon commented 1 year ago

Not a problem ! I am not waiting btw, I'm using my fork right now, so I already enjoy the feature I was missing.

Murmele commented 1 year ago

Old behaviour: Using the workdir path

image

Murmele commented 1 year ago

@ysalmon for me this part with .git makes problems and I am entering an infinity loop. Can you check my changes and retest?