Skip to content

Do not always chomp output #368

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

Merged
merged 4 commits into from
Nov 24, 2020

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Jun 4, 2018

This bunch of commits does some refactoring and adds a way to optionally disable chomping the output of commands.

This fixes #347 in respect to the #show method. Other methods may need similar adjustment.

@smortex smortex force-pushed the do-not-always-chomp-output branch 2 times, most recently from efb4149 to e982722 Compare June 4, 2018 08:55
@stale
Copy link

stale bot commented Aug 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 3, 2018
@smortex smortex force-pushed the do-not-always-chomp-output branch from e982722 to d431000 Compare August 3, 2018 09:54
@stale stale bot removed the wontfix label Aug 3, 2018
@smortex smortex force-pushed the do-not-always-chomp-output branch from d431000 to 4cc9973 Compare August 3, 2018 09:59
@tarcinil tarcinil requested a review from a team September 12, 2018 01:16
@smortex smortex force-pushed the do-not-always-chomp-output branch 2 times, most recently from 8e0d81a to 16059cc Compare December 14, 2018 20:51
Copy link
Member

@jcouball jcouball left a comment

Choose a reason for hiding this comment

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

Looks like this PR is behind master. If you are willing to get it caught up, I’ll take another look and if everything works, merge it.

These internal function start to have too many arguments, and in order
to avoid chomping when not applicable, we will need to add one more
boolean.  Pass a hash of option instead of distinct arguments to make it
easier to scan the source code.

No functionnal change.

Signed-off-by: Romain Tartière <romain@blogreen.org>
This argument was not used, so no functional change.

Signed-off-by: Romain Tartière <romain@blogreen.org>
This allows the #show method to return the actual content of a file when
this file ends by a line feed.

Signed-off-by: Romain Tartière <romain@blogreen.org>
No functional change.

Signed-off-by: Romain Tartière <romain@blogreen.org>
@smortex smortex force-pushed the do-not-always-chomp-output branch from 16059cc to f66cb25 Compare November 23, 2020 23:39
@smortex
Copy link
Contributor Author

smortex commented Nov 24, 2020

@jcouball I rebased these changes on top of master.

Copy link
Member

@jcouball jcouball left a comment

Choose a reason for hiding this comment

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

I prefer the keyword args for chdir and chomp.

Since it is a wide ranging change, I do have a concern that it will invalidate every open PR. They will likely have to rebase.

@jcouball jcouball merged commit 7afaeab into ruby-git:master Nov 24, 2020
@smortex smortex deleted the do-not-always-chomp-output branch November 24, 2020 23:39
jcouball added a commit that referenced this pull request Nov 26, 2020
Signed-off-by: James Couball <jcouball@yahoo.com>
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.

Git commands should not all be chomped by default
3 participants