@@ -691,106 +691,6 @@ static VALUE rb_git_index_readtree(VALUE self, VALUE rb_tree)
691
691
return Qnil ;
692
692
}
693
693
694
- /*
695
- * call-seq:
696
- * index.diff([options]) -> diff
697
- * index.diff(diffable[, options]) -> diff
698
- *
699
- * The first form returns a diff between the index and the current working
700
- * directory.
701
- *
702
- * The second form returns a diff between the index and the given diffable object.
703
- * +diffable+ can either be a +Rugged::Commit+ or a +Rugged::Tree+.
704
- *
705
- * The index will be used as the "old file" side of the diff, while the working
706
- * directory or the +diffable+ will be used for the "new file" side.
707
- *
708
- * The following options can be passed in the +options+ Hash:
709
- *
710
- * :paths ::
711
- * An array of paths / fnmatch patterns to constrain the diff to a specific
712
- * set of files. Also see +:disable_pathspec_match+.
713
- *
714
- * :max_size ::
715
- * An integer specifying the maximum byte size of a file before a it will
716
- * be treated as binary. The default value is 512MB.
717
- *
718
- * :context_lines ::
719
- * The number of unchanged lines that define the boundary of a hunk (and
720
- * to display before and after the actual changes). The default is 3.
721
- *
722
- * :interhunk_lines ::
723
- * The maximum number of unchanged lines between hunk boundaries before the hunks
724
- * will be merged into a one. The default is 0.
725
- *
726
- * :reverse ::
727
- * If true, the sides of the diff will be reversed.
728
- *
729
- * :force_text ::
730
- * If true, all files will be treated as text, disabling binary attributes & detection.
731
- *
732
- * :ignore_whitespace ::
733
- * If true, all whitespace will be ignored.
734
- *
735
- * :ignore_whitespace_change ::
736
- * If true, changes in amount of whitespace will be ignored.
737
- *
738
- * :ignore_whitespace_eol ::
739
- * If true, whitespace at end of line will be ignored.
740
- *
741
- * :ignore_submodules ::
742
- * if true, submodules will be excluded from the diff completely.
743
- *
744
- * :patience ::
745
- * If true, the "patience diff" algorithm will be used (currenlty unimplemented).
746
- *
747
- * :include_ignored ::
748
- * If true, ignored files will be included in the diff.
749
- *
750
- * :include_untracked ::
751
- * If true, untracked files will be included in the diff.
752
- *
753
- * :include_unmodified ::
754
- * If true, unmodified files will be included in the diff.
755
- *
756
- * :recurse_untracked_dirs ::
757
- * Even if +:include_untracked+ is true, untracked directories will only be
758
- * marked with a single entry in the diff. If this flag is set to true,
759
- * all files under ignored directories will be included in the diff, too.
760
- *
761
- * :disable_pathspec_match ::
762
- * If true, the given +:paths+ will be applied as exact matches, instead of
763
- * as fnmatch patterns.
764
- *
765
- * :deltas_are_icase ::
766
- * If true, filename comparisons will be made with case-insensitivity.
767
- *
768
- * :include_untracked_content ::
769
- * if true, untracked content will be contained in the the diff patch text.
770
- *
771
- * :skip_binary_check ::
772
- * If true, diff deltas will be generated without spending time on binary
773
- * detection. This is useful to improve performance in cases where the actual
774
- * file content difference is not needed.
775
- *
776
- * :include_typechange ::
777
- * If true, type changes for files will not be interpreted as deletion of
778
- * the "old file" and addition of the "new file", but will generate
779
- * typechange records.
780
- *
781
- * :include_typechange_trees ::
782
- * Even if +:include_typechange+ is true, blob -> tree changes will still
783
- * usually be handled as a deletion of the blob. If this flag is set to true,
784
- * blob -> tree changes will be marked as typechanges.
785
- *
786
- * :ignore_filemode ::
787
- * If true, file mode changes will be ignored.
788
- *
789
- * :recurse_ignored_dirs ::
790
- * Even if +:include_ignored+ is true, ignored directories will only be
791
- * marked with a single entry in the diff. If this flag is set to true,
792
- * all files under ignored directories will be included in the diff, too.
793
- */
794
694
static VALUE rb_git_diff_tree_to_index (VALUE self , VALUE rb_other , VALUE rb_options )
795
695
{
796
696
git_index * index ;
0 commit comments