Skip to content

Light maintenance#1

Merged
pjbgf merged 7 commits intogo-git:v1from
MichaelMure:maintenance
Mar 7, 2023
Merged

Light maintenance#1
pjbgf merged 7 commits intogo-git:v1from
MichaelMure:maintenance

Conversation

@MichaelMure
Copy link

This PR is a form of light maintenance on this repo. Details are in each commit, but TL;DR:

  • add go module
  • add CI
  • modernize a bit the code (remove support for go1.0 and go1.2, deprecated functions)
  • make sure that the tests pass

Nobody use that anymore.
At the time of making that change, tests have been failing for a long (?) time due to
a change in golang parsing. When that code was written, fmt.Sscanf was accepting 0x and
-0x (without digit), which is why the original author also accepted it in the config parsing.
This is not the case anymore, and this commit only reflect the reality of things.
Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
@MichaelMure MichaelMure requested a review from hiddeco March 3, 2023 12:58
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits to align with versions on go-git.

Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
@MichaelMure MichaelMure requested review from pjbgf and removed request for hiddeco March 7, 2023 12:19
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @MichaelMure 🙇

@MichaelMure
Copy link
Author

BTW, I found out about two maintained fork of gcfg:

The first one apparently has a very very nice capability: being able to edit a config file without deleting the comments a user might have put there. It would be great to cherry pick those commits. See for example git-bug/git-bug#1022 how that can cause problems.

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @MichaelMure!

@pjbgf pjbgf merged commit 6c58f93 into go-git:v1 Mar 7, 2023
@pjbgf
Copy link
Member

pjbgf commented Mar 7, 2023

@MichaelMure as for the changes in other forks, it would be better to ask the authors whether they want to upstream their changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants