Comments (14)
Libgit2 seems like a better solution than writing pure cli commands. How could we then do the git command history stuff?
from neogit.
@TimUntersberger good question. probably command history will handled in Neovim instead (history for ex commands, for instance, like :Neogit split mybranch
and whatever)
from neogit.
Just to make sure, are we talking about the same thing? I am talking about for example: git status --....
this then gets added to the history along with the stdout, stderr and the return code. I guess we could generate them ourselves?
from neogit.
@TimUntersberger yea I am not sure about that. But it is not "all or nothing", we can still cli as the baseline, and slowly move things to libgit2 one at at time.
from neogit.
If you want to you can try changing an existing implementation to use libgit2, so we can see how this would work. The easiest one would probably be the status command. Also how can you include luarocks dependencies?
from neogit.
Also how can you include luarocks dependencies?
We don't know yet 😅 . I will just hack it into my lua path for now, and discuss with a bunch of ppl (you, packer.nvim, neovim core team) how/if/when we will "do" luarocks deps.
from neogit.
soo it turns out luagit2 is not compatible with libgit2 1.0. I will see how much effort to fix it (probably not too much, as uses LuaNativeObject)
from neogit.
WIP libgit2/luagit2#9 should be too hard to finish
from neogit.
should be too hard
Do you mean shouldn't be too hard
? Nice work!
from neogit.
I cannot into English grammar :]
from neogit.
No worries :-) I am excited to see how we could use libgit2! Have you tried neogit yet? How do you feel about the notifications? When i initially developed this I thought it might be a bit too much, but I just went with it anyway, because the concept feels really cool.
from neogit.
actually not, there so much neovim lua stuff that I am being behind on 😅. I first want to do fugitive style Read/WriteBufCmd and a simple gitgutter (but with decorations instead of signs, it is 2020 already). But I will "try" the neogit experience for sure :]
from neogit.
decorations instead of signs
👀
What exactly do you mean by decorations?
But I will "try" the neogit experience for sure :]
You could experience a few bugs ... 😅
from neogit.
What exactly do you mean by decorations?
For instance
- highlighting the exact byte range of a diff instead of just the lines
- showing "virtual text" which could be anything (git blame, number of deleted lines, etc etc)
from neogit.
Related Issues (20)
- Error "Neogit has not been setup!" HOT 2
- Neogit doesn't respond to subcomands
- Error when committing HOT 1
- closing commit_editor with kind = "vsplit" causes error HOT 2
- Discarding specific lines does not work
- ignored_settings not honoring the `--` flag of the log popup
- Erroneous behavior when working simutaniously with two or more git repos
- Is it possible to disable curosrline highlightings but keep context highlightings?
- unstaging a highlighted section in an staged but untracked file does not work HOT 6
- Float window cannot be split HOT 1
- NeogitWinSeparator has no default highlight
- Vertical split commit popup throws an error when closing or commiting in vsplit
- Tab not focused for secondary git repo the first time Neogit is opened
- Neogit fails to close staged diff split if commit editor is split instead of tab HOT 3
- Async errors + Neogit showing outdated state: neogit/lib/buffer.lua:349: Invalid buffer id: 44 HOT 15
- "Recent commits" section does not show if there are unmerged commits HOT 3
- ...al/share/nvim/lazy/neogit/lua/neogit/lib/item_filter.lua:18: bad argument #1 to 'new' (table expected, got boolean)
- `attempt to compare nil with number` when staging via visual-lines selection HOT 1
- Neogit showing incorrect/duplicate data in status buffer HOT 11
- Neogit starts producing errors when calling `neogit.open` twice from different `pwd`, OR when using a zsh terminal that runs the `powerlevel10k` theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogit.