Skip to content
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

Fix typo in 'bibliograph' #2818

Closed
wants to merge 0 commits into from
Closed

Fix typo in 'bibliograph' #2818

wants to merge 0 commits into from

Conversation

henrikt-ma
Copy link
Collaborator

Trying to clean up no longer needed branches, and I don't understand why GitHub still says the commit on this branch isn't present on master

@henrikt-ma
Copy link
Collaborator Author

Can someone explain what's going on here? When I look at master, the fix is already in place.

@HansOlsson
Copy link
Collaborator

HansOlsson commented Jan 22, 2021

Can someone explain what's going on here? When I look at master, the fix is already in place.

That was due to henrikt-ma-patch-4-1 which was merged through #2803 (to master).
I don't know why there were two PRs (or more specifically two branches).

@henrikt-ma
Copy link
Collaborator Author

Can someone explain what's going on here? When I look at master, the fix is already in place.

That was due to henrikt-ma-patch-4-1 which was merged through #2803 (to master).
I don't know why there were two PRs (or more specifically two branches).

Me neither, but what really puzzles me is why GitHub says that this branch still contains a change that can be applied to master: https://github.com/modelica/ModelicaSpecification/pull/2818/files

@HansOlsson
Copy link
Collaborator

HansOlsson commented Jan 22, 2021

Can someone explain what's going on here? When I look at master, the fix is already in place.

That was due to henrikt-ma-patch-4-1 which was merged through #2803 (to master).
I don't know why there were two PRs (or more specifically two branches).

Me neither, but what really puzzles me is why GitHub says that this branch still contains a change that can be applied to master: https://github.com/modelica/ModelicaSpecification/pull/2818/files

My assumption is that you for unknown reason made two branches with the same contents; and some checks that the change isn't already there are done later.

@dietmarw
Copy link
Member

My assumption is that you for unknown reason made two branches with the same contents; and some checks that the change isn't already there are done later.

That's exactly what happened:
image

@dietmarw
Copy link
Member

Btw, @henrikt-ma you might wanna avoid creating PR branches on the main repo but in your fork instead. Also clean up merged branches afterwards ;-)

@beutlich
Copy link
Member

I guess, if you merge this PR, you will see a commit w/o changes.

By the way, I have just enabled the auto-delete feature of merged branches (like we also set in the MSL repo):

grafik

@HansOlsson
Copy link
Collaborator

Btw, @henrikt-ma you might wanna avoid creating PR branches on the main repo but in your fork instead. Also clean up merged branches afterwards ;-)

Yes! Would be appreciated.

@beutlich beutlich closed this Jan 22, 2021
@beutlich beutlich deleted the henrikt-ma-patch-4 branch January 22, 2021 15:10
@beutlich
Copy link
Member

beutlich commented Jan 22, 2021

Rebasing and force-pushing that branch auto-closes the PR - nice!

@beutlich beutlich removed the request for review from HansOlsson January 22, 2021 15:10
@beutlich beutlich added the duplicate This issue or pull request already exists label Jan 23, 2021
@henrikt-ma
Copy link
Collaborator Author

Btw, @henrikt-ma you might wanna avoid creating PR branches on the main repo but in your fork instead. Also clean up merged branches afterwards ;-)

Yes! Would be appreciated.

Sure, cleaning up branches is what made me find this one. I am also generally happy about the idea of branch hygiene in the central repo.

It is the convenient GitHub online editing that has tricked me into creating all these branches for changes so small that the branches are easily forgotten after merging. Automatic cleanup makes perfect sense for this type of branches! Now, does this mean that it becomes ok to keep creating central repo branches by GitHub online editing directly on the central repo?

@HansOlsson
Copy link
Collaborator

It is the convenient GitHub online editing that has tricked me into creating all these branches for changes so small that the branches are easily forgotten after merging. Automatic cleanup makes perfect sense for this type of branches! Now, does this mean that it becomes ok to keep creating central repo branches by GitHub online editing directly on the central repo?

It would still be preferable to avoid it. However, as I understand it GitHub currently doesn't have good support for creating such branches in a local repository.

@dietmarw
Copy link
Member

Alternatively use an editor with GitHub integration where you can simply create PR and follow them up from within the editor and which then also has LaTeX support. One I can recommend here is VSCode and the integration is shown here: https://code.visualstudio.com/docs/editor/github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants