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

Natural way to refer to files #4

Open
gleb-roma opened this issue Mar 1, 2023 · 1 comment
Open

Natural way to refer to files #4

gleb-roma opened this issue Mar 1, 2023 · 1 comment

Comments

@gleb-roma
Copy link

After you get a status, you typically see something like this:

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   ope/logit_modularized_clean_new_feature_panel/source.py

I want to say
gitgpt what are changes in the first modified file

It suggests

git diff HEAD~1 <filename> [y/N] y
sh: -c: line 2: syntax error near unexpected token `newline'
sh: -c: line 2: `git diff HEAD~1 <filename>'
Error: exit status 2

(doesn't work)

What I expect is
git diff ope/logit_modularized_clean_new_feature_panel/source.py

@Hesse
Copy link
Owner

Hesse commented Apr 18, 2023

@gleb-roma, yeah, that's an interesting one. I just tried it and got a different response. I would expect something like,
git diff <filename> .

When you do something like:
`gitgpt show the changes for a given file
Would you like to run the following command:

git diff [y/N]`

But I get it, it's not exactly natural.

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