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

Is it possible to know which files has been modified? #24

Open
llgcode opened this issue Jun 14, 2021 · 5 comments
Open

Is it possible to know which files has been modified? #24

llgcode opened this issue Jun 14, 2021 · 5 comments
Assignees

Comments

@llgcode
Copy link

llgcode commented Jun 14, 2021

Hi Nigel,
I need to reference the file(s) that has changed into the command of the task ${modified_file_path}.

Is it possible?

@Gruntfuggly
Copy link
Owner

It could set and environment variable which you could then reference with ${ENV:modified_file_path} (I believe). I'll see if I can add it.

@llgcode
Copy link
Author

llgcode commented Jun 14, 2021

it looks fine if it's possible. So if it's an env variable it could be used like this %MODIFIED_FILE_PATH% on windows or $MODIFIED_FILE_PATH on linux

@Gruntfuggly
Copy link
Owner

I don't know to be honest. I'll see what works when I add it.

@llgcode
Copy link
Author

llgcode commented Jun 14, 2021

it's fine

@DetachHead
Copy link

i've been using ${file} in my tasks, which i only just found out doesn't refer to the modified file, but the currently selected file. spent ages trying to figure out why my python files were being messed up only to find that it was running on the wrong file when i quickly switch tabs after making a change

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