Skip to content

interactive cli diff tool (`git add -p` wrapper)

Notifications You must be signed in to change notification settings

nitsanavni/idiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

I like Git's interactive/patch diff utilities!

Sometimes it's useful with any two files, not necessarily under Git.

One common example for me is to use it as a diff tool with Approval Tests.

Example

any two files

$ echo src > src; echo dst > dst

$ ./idiff.sh src dst
diff --git a/temp b/temp
index c419571..85de9cf 100644
--- a/temp
+++ b/temp
@@ -1 +1 @@
-dst
+src
(1/1) Stage this hunk [y,n,q,a,d,e,?]? y

$ cat dst
src

About

interactive cli diff tool (`git add -p` wrapper)

Topics

Resources

Stars

Watchers

Forks

Languages