Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Slight improvement to 7af7a8 (bin/chk-entry.sh) #2546

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

xexyl
Copy link

@xexyl xexyl commented Jul 7, 2024

Instead of using just git use "$GIT_TOOL" as the script already establishes what git to use.

The comment I added also explains the rationale about this a bit, as it might not seem immediately clear why it's useful over find(1).

And although it was already tested I forced what would have caused a failure before, to happen, so that I could verify that this works as I had originally imagined it: put a file in an entry directory that does not belong there and then run the script again, to make sure it does not detect any problem.

Of course with this change one still has to make sure to add valid files to git but that always was how it was anyway.

Instead of using just git use "$GIT_TOOL" as the script already
establishes what git to use.

The comment I added also explains the rationale about this a bit, as it
might not seem immediately clear why it's useful over find(1).

And although it was already tested I forced what would have caused a
failure before, to happen, so that I could verify that this works as I
had originally imagined it: put a file in an entry directory that does
not belong there and then run the script again, to make sure it does not
detect any problem.

Of course with this change one still has to make sure to add valid files
to git but that always was how it was anyway.
Copy link

@lcn2 lcn2 left a comment

Choose a reason for hiding this comment

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

Of course 😳 thanks for the improvement @xexyl

@lcn2 lcn2 merged commit d67f39d into ioccc-src:master Jul 7, 2024
1 check passed
@xexyl
Copy link
Author

xexyl commented Jul 7, 2024

Of course 😳 thanks for the improvement @xexyl

Of course 😳 welcome for the improvement @lcn2

@xexyl xexyl deleted the chk-entry-git branch July 7, 2024 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants