Replies: 1 comment
-
| Here a diff between a tree ( I have been meaning to implement this for a quite a while now, but other things keep popping up. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I've looked around and can't find an example of how to get the staged file changes. I'm looking for the equivalent of
git diff HEAD --name-onlyor the "Changes to be committed" section ofgit status. For example:I want to get the 3 staged changes:
README.txt, new_file.sh, subdir2/README.txt.I've tried this:
But that gives me all files committed and staged, with the same value
0forentry.stage().Is there a way to get a list of the staged changes? Ideally I would be able to see the line-level diff, but file-level is fine too.
Beta Was this translation helpful? Give feedback.
All reactions