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

Port the script to POSIX shell #75

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

mcepl
Copy link
Contributor

@mcepl mcepl commented Nov 18, 2024

I would like to contribute this script to the git proper (unless you want to do it yourself), because it is nice to share, but for that to happen, the script must be ported to the POSIX shell (plus tests, man page, etc. must be added). This is my effort, any review would be welcome.

@mcepl mcepl marked this pull request as draft November 18, 2024 19:46
Copy link
Owner

@keis keis left a comment

Choose a reason for hiding this comment

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

Hi, do feel free to suggest it for git inclusion. Tests, man pages, and porting to posix is all things I would be happy to accept for this standalone script too.

#74 looks like a good change to land first.

git-fixup Outdated Show resolved Hide resolved
git-fixup Show resolved Hide resolved
@mcepl
Copy link
Contributor Author

mcepl commented Nov 19, 2024 via email

@mcepl
Copy link
Contributor Author

mcepl commented Nov 19, 2024

#74 looks like a good change to land first.

Absolutely!

@mcepl mcepl force-pushed the posix branch 7 times, most recently from ed42294 to 11301c0 Compare November 21, 2024 17:19
keis and others added 4 commits November 27, 2024 23:55
And a snippet to Makefile to generate HTML and manpage.
The tests won't work outside of the git tree. Perhaps, I should
just rewrite it to plain shell script. Should I?
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
Copy link
Owner

Choose a reason for hiding this comment

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

I found this https://github.com/felipec/sharness

Replacing test-lib with sharness I'm able to run this test

@mcepl
Copy link
Contributor Author

mcepl commented Dec 1, 2024 via email

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.

2 participants