Skip to content

Containerfiles: cleanup \ multi-line continuations to normalize last entry#36

Merged
theyoyojo merged 1 commit into
masterfrom
containfile_cleanup
Mar 21, 2024
Merged

Containerfiles: cleanup \ multi-line continuations to normalize last entry#36
theyoyojo merged 1 commit into
masterfrom
containfile_cleanup

Conversation

@charliemirabile

Copy link
Copy Markdown
Contributor

Places where we use \ to spread a command or string of commands across multiple lines should have a trailing line that does nothing so that all the real lines can look the same (i.e. all with \ or && ) so that future commit diffs can be tidy.

If you ever have to add something to the end of one of these improperly terminated lists, you will need to edit the previous last entry line and ruin its git blame with useless noise.

By creating this commit, I am creating such useless noise, but by doing it in a refactor commit that has no effect on behavior, I hope to help whoever comes across this while blaming to know they can skip it. This is not the commit you are looking for :)

Single commands whose arguments are spread can just have ; on the last line, and pipelines separated by && can be terminated by the : command which is a no-op.

…entry

Places where we use `\` to spread a command or string of commands across
multiple lines should have a trailing line that does nothing so that all
the real lines can look the same (i.e. all with \ or && \) so that future
commit diffs can be tidy.

If you ever have to add something to the end of one of these improperly
terminated lists, you will need to edit the previous last entry line and
ruin its git blame with useless noise.

By creating this commit, I am creating such useless noise, but by doing
it in a refactor commit that has no effect on behavior, I hope to help
whoever comes across this while blaming to know they can skip it. This
is not the commit you are looking for :)

Single commands whose arguments are spread can just have `;` on the last
line, and pipelines separated by `&&` can be terminated by the `:` command
which is a no-op.
@theyoyojo theyoyojo merged commit 7556c6f into master Mar 21, 2024
@theyoyojo theyoyojo deleted the containfile_cleanup branch March 21, 2024 19:13
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