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

Lazygit to show only files in current directory or subdirectories #815

Open
strogiyotec opened this issue Apr 26, 2020 · 2 comments
Open

Comments

@strogiyotec
Copy link

Good day , thank you for this amazing tool.
I have a question , I have a git project with the following structure

/path/project

inside this project I have two subfolders

/path/project/folder1
/path/project/folder2

When I'm inside folder1 I want lazygit to show unstaged files only in this folder. Using terminal the command is

git status .

I tried to execute lazygit with specified folder but it still shows files from both folders

lazygit /path/project/folder1

Does lazygit support this feature ? Lazygit version is

lazygit --version
commit=, build date=2020-04-23, build source=debian, version=0.20.2, os=linux, arch=amd64
@jesseduffield
Copy link
Owner

Sorry for the late reply. I wonder if other people would want this behaviour. I like lazygit opening based on the root of the repo as opposed to whatever folder I'm in, but I can imagine that for larger repos you may want to open lazygit in the context of a subfolder. Off the top of my head I'm actually not sure how much work would be involved in doing this.

@mark2185
Copy link
Collaborator

mark2185 commented Aug 7, 2022

Could we add a filter for this? Just like we have for staged/unstaged files, we could add something like show only current directory which can than be provided to the following command:

$> git -C status .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants