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 there a way to commit without quiting :Gstatus window? #480

Closed
ccll opened this issue Apr 24, 2014 · 4 comments
Closed

Is there a way to commit without quiting :Gstatus window? #480

ccll opened this issue Apr 24, 2014 · 4 comments

Comments

@ccll
Copy link

ccll commented Apr 24, 2014

My typical workflow is:

  1. ':Gstatus' to bring up status window
  2. 'dd' on changed files to see the diff
  3. ':diffput' to stage hunks
  4. Repeat step 2 and 3 until I got enough hunks to commit
  5. 'cc' in the status window to bring up commit window
  6. Enter commit message and ':wq' to execute the commit

The ':wq' will also close ':Gstatus' window, so I have to reopen it in order to commit the rest of changes.

This is inconvenience, is there any way to avoid this?

@tpope
Copy link
Owner

tpope commented May 7, 2014

Not really. It's actually :Gcommit that closes the :Gstatus window and replaces it with its own.

tpope added a commit that referenced this issue Jun 29, 2014
@tpope
Copy link
Owner

tpope commented Jun 29, 2014

:Gcommit -v (or cvc) now opens the commit message in a new tab, bypassing the :Gstatus closure.

@tpope tpope closed this as completed Jun 29, 2014
@prat0318
Copy link

awesome!
On 29-Jun-2014 11:56 AM, "Tim Pope" notifications@github.com wrote:

Closed #480 #480.


Reply to this email directly or view it on GitHub
#480 (comment).

@prognostikos
Copy link

@tpope I just updated fugitive, and this feature totally made my day. I spend more time using vim with tons of your plugins than almost any other software, and I really appreciate the thoughtfulness that you bring to your work. You rock! 🤘

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

4 participants