Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Staging chunks is undocumented & undiscoverable? #123

Open
cap10morgan opened this issue Jan 6, 2017 · 1 comment
Open

Staging chunks is undocumented & undiscoverable? #123

cap10morgan opened this issue Jan 6, 2017 · 1 comment

Comments

@cap10morgan
Copy link

This package claims it can be used to stage chunks, but I can find no documentation nor UI options for doing so.

@jmatsushita
Copy link

jmatsushita commented Jan 7, 2017

Came here just a few hours after you for the exact same question (from the note in the README: The method for staging individual patches isn't the best interface.. It's #101 that helped me figure it out. To stage hunks / chunks / patches (i.e. only part of a file) :

  • In the unstaged section,
  • Arrow up or down to the file you want to partially commit,
  • Hit tab to open the diffs,
  • Arrow down and up to the hunk / chunk / patch you want to stage,
  • Hit Shift-S to stage, continue to arrow up or down and hit Shift-S for staging other hunks.
  • GOTCHA (cf isn't the best interface) Hit R to refresh
  • Now you should see the changes in the unstaged area. (you might need to arrow down).

The same thing works for unstaging, just use U once you've tabbed into the diffs (and also hit R to see the changes.

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

No branches or pull requests

2 participants