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

Feature request: Ability to filter the status by a specified directory #337

Closed
hrj opened this issue Aug 5, 2014 · 3 comments
Closed

Feature request: Ability to filter the status by a specified directory #337

hrj opened this issue Aug 5, 2014 · 3 comments

Comments

@hrj
Copy link

hrj commented Aug 5, 2014

In command line git if I specify a directory to the status command, the output is filtered for that directory. This is very useful when the working directory has many changes spread over several directories.

It would be great if git-cola could support something similar. The way I envision it is:

If user specifies a status command followed by a path on the command line, then the status view shows only changes relevant to that path. To make it clear to the user that the view is filtered, the status UI shows the filter in use. Extra creds if the filter can be toggled on / off through the UI.

davvid added a commit that referenced this issue Aug 18, 2014
Hide the filter widget by default and add a toggle button to display it.

Related-to: #337

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid closed this as completed in 05417ac Aug 18, 2014
@hrj
Copy link
Author

hrj commented Aug 18, 2014

Thanks @mmargoliono @davvid for your nifty work!

Would it be possible to specify the filter path on the command line? For example,

git cola ./

Would automatically add a filter for the current directory. That would save some keystroke or mouse strokes.

davvid added a commit that referenced this issue Aug 18, 2014
We can now say:

	$ git cola --status-filter .
or
	$ git cola -s .

... and the status filter will be preset with the appropriate filter.

Related-to: #337
Suggested-by: @hrj
Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid
Copy link
Member

davvid commented Aug 18, 2014

Thanks @hrj. I added a --status-filter (-s) command line option for setting the filter. I hope that helps.

@hrj
Copy link
Author

hrj commented Aug 18, 2014

Fabulous! 👏

Thanks!

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

No branches or pull requests

2 participants