Skip to content

ryancrum/tailor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailor

A unified diff format generator for clojure.

Usage

Tailor is a simple helper library that helps with the generation and formatting of unified diff files.

user> (use 'tailor.diff)
nil
user> (-> (create-changeset ["a" "b" "c" "d" "e"])
          (append-line "f" 6)
          (change-line "A" 1)
          (remove-line 3)
          (file-diff "tmp/moose.txt" 1)
          (print))
--- tmp/moose.txt
+++ tmp/moose.txt
@@ -1,4 +1,3 @@
-a
+A
 b
-c
 d
@@ -5,1 +4,2 @@
 e
+f

License

Copyright (C) 2012 Ryan Crum

Distributed under the Eclipse Public License, the same as Clojure.

About

Library for creating files in the unified diff format in Clojure.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors