Skip to content

Instantly share code, notes, and snippets.

@akiradeveloper
Created January 29, 2012 08:08
Show Gist options
  • Save akiradeveloper/1697818 to your computer and use it in GitHub Desktop.
Save akiradeveloper/1697818 to your computer and use it in GitHub Desktop.
Is tag diff copy existing?
# Example of tag diff copy
$ cat file_a
unko
#START_TAG_DIFF_COPY mydiff
hoge
hage
hige
#END_TAG_DIFF_COPY
chinko
$ cat file_b
hoge
hage
$ COMMENT=# TAG=mydiff file_a file_b > file_c
$ cat file_c
unko
#START_TAG_DIFF_COPY mydiff
hoge
hage
#END_TAG_DIFF_COPY
chinko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment