Skip to content

Add svn support, plus some misc fixes #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed

Add svn support, plus some misc fixes #28

wants to merge 9 commits into from

Conversation

pharaujo
Copy link

  • Changed --version to use the optparse builtin support for it;
  • Changed --numlines to --unified because most diff tools use the latter for specifing number of context lines;
  • Added -u and -L to support svn calls to external diff tools.

The -u is a dummy option; it's there so that option parsing doesn't choke whenever it is used. This is compatible with svn and git.

As an example, svn defaults to adding `-u` to external diff tool
invocations.
Most diff programs use --unified to specify number of lines of context,
so might as well align with the de-facto standard.
This new option allows labelling each of the files being diff'd with
arbitrary strings instead of just showing the file paths.

This also completes the basic funcionality to support using icdiff as an
external diff tool for svn.
@pharaujo
Copy link
Author

This would fix issue #19

@@ -406,7 +425,8 @@ def start():
parser.add_option("--no-headers", default=False,
action="store_true",
help="don't label the left and right sides with their file names")
parser.add_option("--numlines", default=5,
parser.add_option("-U", "--unified", default=5,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep support for --numlines as well, for people who've been using that?

jeffkaufman added a commit that referenced this pull request Dec 11, 2014
 * Changed `--version` to use the optparse builtin support for it;
 * Changed `--numlines` to `--unified` because most diff tools use the latter for
   specifing number of context lines;
 * Added `-u` and `-L` to support svn calls to external diff tools.

The `-u` is a dummy option; it's there so that option parsing
doesn't choke whenever it is used. This is compatible with svn
and git.

Squash-merge of pharaujo's work in #28.
@jeffkaufman
Copy link
Owner

Merged as ab6b6f8

@jeffkaufman
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants