Skip to content

Instantly share code, notes, and snippets.

@perXautomatik
Forked from tekin/.gitattributes
Created March 3, 2022 16:57

Revisions

  1. @tekin tekin revised this gist Nov 22, 2020. 2 changed files with 12 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions .gitattributes
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    # Stick this in your home directory and point your Global Git config at it by running:
    #
    # $ git config --global core.attributesfile ~/.gitattributes
    #
    # See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details

    *.c diff=cpp
    *.h diff=cpp
    *.c++ diff=cpp
    6 changes: 6 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Additional manually-configured matchers you may want to add to your .gitconfig

    [diff "rspec"]
    xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario|background)[ \t].*)$"
    [diff "swift"]
    xfuncname = ^[ \t]*((class|func)[ \t].*)$
  2. @tekin tekin revised this gist Oct 20, 2020. No changes.
  3. @tekin tekin revised this gist Oct 20, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .gitattributes
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,8 @@
    *.hpp diff=cpp
    *.cc diff=cpp
    *.hh diff=cpp
    *.m diff=objc
    *.mm diff=objc
    *.cs diff=csharp
    *.css diff=css
    *.html diff=html
  4. @tekin tekin revised this gist Oct 19, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitattributes
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@
    *.hpp diff=cpp
    *.cc diff=cpp
    *.hh diff=cpp
    *.cs diff=csharp
    *.css diff=css
    *.html diff=html
    *.xhtml diff=html
  5. @tekin tekin revised this gist Oct 19, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitattributes
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@
    *.css diff=css
    *.html diff=html
    *.xhtml diff=html
    *.ex diff=elixir
    *.exs diff=elixir
    *.go diff=golang
    *.php diff=php
  6. @tekin tekin created this gist Oct 16, 2020.
    22 changes: 22 additions & 0 deletions .gitattributes
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    *.c diff=cpp
    *.h diff=cpp
    *.c++ diff=cpp
    *.h++ diff=cpp
    *.cpp diff=cpp
    *.hpp diff=cpp
    *.cc diff=cpp
    *.hh diff=cpp
    *.css diff=css
    *.html diff=html
    *.xhtml diff=html
    *.exs diff=elixir
    *.go diff=golang
    *.php diff=php
    *.pl diff=perl
    *.py diff=python
    *.md diff=markdown
    *.rb diff=ruby
    *.rake diff=ruby
    *.rs diff=rust
    *.lisp diff=lisp
    *.el diff=lisp