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

Allow ignoring hidden files, respecting .gitignore and git exclude #172

Closed
wants to merge 1 commit into from

Conversation

vrmiguel
Copy link
Member

@vrmiguel vrmiguel commented Nov 7, 2021

Closes #170

@vrmiguel vrmiguel changed the title Allow ignoring hidden files and respecting .gitignore and git exclude Allow ignoring hidden files, respecting .gitignore and git exclude Nov 7, 2021
@AntonHermann
Copy link
Contributor

This is awesome :D

One suggestion: I think splitting the options for git and hidden files would be valuable, maybe we could just copy ripgreps options there?

@vrmiguel
Copy link
Member Author

vrmiguel commented Nov 9, 2021

This is awesome :D

One suggestion: I think splitting the options for git and hidden files would be valuable, maybe we could just copy ripgreps options there?

Good point! I'll try adding that soon :D

@@ -42,6 +42,10 @@ pub enum Subcommand {
/// The resulting file. Its extensions can be used to specify the compression formats.
#[clap(required = true, value_hint = ValueHint::FilePath)]
output: PathBuf,

/// If set, `ouch` will *not* compress hidden files or files ignored through .gitignore or .ignore
Copy link
Member

Choose a reason for hiding this comment

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

This will appear in the --help message, so it should be a bit shorter, suggestion:

/// Ignore hidden files

I think that we should have another flag, -i/--ignore for .gitignore and .ignore files.

@vrmiguel vrmiguel closed this Jan 15, 2022
@marcospb19
Copy link
Member

Reopened and merged at #245.

@marcospb19 marcospb19 deleted the ignore branch June 5, 2022 22:56
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.

Add flag to skip files ignored by .gitignore
3 participants