Coder Social home page Coder Social logo

Commit Popup about neogit HOT 15 CLOSED

neogitorg avatar neogitorg commented on July 20, 2024
Commit Popup

from neogit.

Comments (15)

TimUntersberger avatar TimUntersberger commented on July 20, 2024 1

Maybe listing only available commands in commit popup could avoid useless issues and make things clearer to the user.

I also noticed this problem. After #131 is merged this is fixed.

from neogit.

n3wborn avatar n3wborn commented on July 20, 2024 1

Toggling a flag in the commit popup doesn't seem to do anything, or I'm misunderstanding what pressing tab on one of those lines means.

Nvim nightly / neogit up-to-date

Tabs on an option works for me, same if I type -u for upstream for exemple

from neogit.

hdonnay avatar hdonnay commented on July 20, 2024 1

Ah, sorry, I was thrown off by the trailer not being there while editing, as if I'd run git commit -s on the command line. I do see that line in the command history and the trailer in the commit with git show. I must have been mistaken before when I thought it was missing. Thanks for the help!

from neogit.

vendion avatar vendion commented on July 20, 2024 1

When trying to do a commit using the verbose flag -v, there is no inline diff of the files that are about to be committed.

Also is it possible to set defaults for the commit popup? I like doing commits with the -v and -s flags and having to press them every time can get annoying.

from neogit.

n3wborn avatar n3wborn commented on July 20, 2024

Hi !
As a newcomer I was about to fill an issue because I tried to "Fixup" a commit in the previous one but nothing happened when after "c" I hit "f" (same for f/s/S).

I though this was bug or me not being smart enough to understand how to do a fixup. I first asked on r/neovim and I've been told to fill an issue so that I and other people in the same situation could benefit from the answer.

But now that I see this issue I can see that Fixup/Squash/etc is not possible yet. Maybe listing only available commands in commit popup could avoid useless issues and make things clearer to the user.

I've just switched from fugitive cause I really love the way Neogit works, so thank you :)

from neogit.

hdonnay avatar hdonnay commented on July 20, 2024

Toggling a flag in the commit popup doesn't seem to do anything, or I'm misunderstanding what pressing tab on one of those lines means.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

@hdonnay can you give me an example?

from neogit.

hdonnay avatar hdonnay commented on July 20, 2024

On neogit 3226b98 and neovim 0.5.0 (from Fedora 34) hitting the -s (signoff) toggle results in a message where the sign-off trailer is not present.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

@hdonnay I cannot reproduce this. If you open your command history, does it have the following line?

git commit --file=.git/NEOGIT_COMMIT_EDITMSG --signoff

from neogit.

d-miketa avatar d-miketa commented on July 20, 2024

Hey, really enjoying this functionality. :)

I noticed one inconsistency though: when committing through :Neogit commit, I usually don't see a list of staged files etc to provide context for the commit message – but sometimes it appears. Committing via the UI at :Neogit always produces the list.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

I usually don't see a list of staged files etc to provide context for the commit message

We are using the output of git commit --dry-run for that. I haven't reproduced this yet. If you encounter this again try running the command and see whether it includes the diff.

from neogit.

d-miketa avatar d-miketa commented on July 20, 2024

I haven't encountered the error at all today, so perhaps one of your recent commits fixed it? :)

Thank you for the amazing plugin! Using it daily.

from neogit.

pbogut avatar pbogut commented on July 20, 2024

Not sure if its right place but its related. I don't get context for commit either, but only sometimes, not sure what it depends on, is all right in some projects in others its not.

What I can tell for sure is that when it doesn't work git commit --dry-run returns Error 128 in Neogit command log (after checking with $). Error 128 is fatal: this operation must be run in a work tree. When I run it manually :execute('!cd ' . getcwd() . ' && git commit --dry-run') it runs fine.

It looks like Neogit sometimes run this command outiside git tree.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

@pbogut can you create a seperate issue for this? Thank you for finding a problem 👍

from neogit.

pbogut avatar pbogut commented on July 20, 2024

@TimUntersberger I've tried to reproduce it with minimal config and it looks like it was my config. Sorry for bothering you. I will try to find out which part of my config was causing the issue and if it's not me being dumb (unlikely) I will create issue.

from neogit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.