osse / git-scripts Goto Github PK
View Code? Open in Web Editor NEWA collection of useful Git commands
A collection of useful Git commands
~/c/testonly.nvim % git blamediff --color
diff --git i/lua/testonly.lua w/lua/testonly.lua
index 7c23cbd..3107fca 100644
--- i/lua/testonly.lua
+++ w/lua/testonly.lua
@@ -69,6 +69,7 @@ local function reset_all_exclusive()
ebb2d1f if child then
ebb2d1f local text = vim.treesitter.get_node_text(child, bufnr)
ebb2d1f if text == "it.only" or text == "describe.only" then
0000000 + print("foo")
9a909ad local start_row, _, end_row, _ = node:range()
9a909ad vim.api.nvim_buf_set_text(bufnr, start_row, 0, end_row, 0, { "it", "describe" })
ebb2d1f end
~/c/testonly.nvim % git blamediff --color | cat
diff --git i/lua/testonly.lua w/lua/testonly.lua
index 7c23cbd..3107fca 100644
--- i/lua/testonly.lua
+++ w/lua/testonly.lua
@@ -69,6 +69,7 @@ local function reset_all_exclusive()
if child then
local text = vim.treesitter.get_node_text(child, bufnr)
if text == "it.only" or text == "describe.only" then
+ print("foo")
local start_row, _, end_row, _ = node:range()
vim.api.nvim_buf_set_text(bufnr, start_row, 0, end_row, 0, { "it", "describe" })
end
Also, git blamediff | cat
gives git-blamediff:print:80: bad option: -
but works.
% git blamediff | cat
diff --git i/lua/testonly.lua w/lua/testonly.lua
index 7c23cbd..3107fca 100644
/Users/raine/bin/git-blamediff:print:80: bad option: -
+++ w/lua/testonly.lua
@@ -69,6 +69,7 @@ local function reset_all_exclusive()
ebb2d1f if child then
ebb2d1f local text = vim.treesitter.get_node_text(child, bufnr)
ebb2d1f if text == "it.only" or text == "describe.only" then
0000000 + print("foo")
9a909ad local start_row, _, end_row, _ = node:range()
9a909ad vim.api.nvim_buf_set_text(bufnr, start_row, 0, end_row, 0, { "it", "describe" })
ebb2d1f end
Hi,
I came around your git-brv
script, and quite liked it. I believe it could be promoted way more in the git-extras project which has a bigger visibility, and has already various distribution channels like homebrew (for mac users), and benefit from some integration e.g. in oh-my-zsh.
However the git-extras owner would like your permission to do so, which seems right anyway?
Issue in question tj/git-extras#770
That would be awesome if you could feed us your opinion on the matter.
Thanks a lot in advance !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.