KEMBAR78
Comparing a6a95cd1b4...33be7b38c2 · git/git · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: git/git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a6a95cd1b4
Choose a base ref
...
head repository: git/git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 33be7b38c2
Choose a head ref
  • 2 commits
  • 7 files changed
  • 2 contributors

Commits on May 17, 2019

  1. userdiff: add built-in pattern for rust

    This adds xfuncname and word_regex patterns for Rust, a quite
    popular programming language. It also includes test cases for the
    xfuncname regex (t4018) and updated documentation.
    
    The word_regex pattern finds identifiers, integers, floats and
    operators, according to the Rust Reference Book.
    
    Cc: Johannes Sixt <j6t@kdbg.org>
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    Marc-André Lureau authored and gitster committed May 17, 2019
    Configuration menu
    Copy the full SHA
    d74e786 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2019

  1. userdiff: two simplifications of patterns for rust

    - Do not enforce (but assume) syntactic correctness of language
      constructs that go into hunk headers: we only want to ensure that
      the keywords actually are words and not just the initial part of
      some identifier.
    
    - In the word regex, match numbers only when they begin with a digit,
      but then be liberal in what follows, assuming that the text that is
      matched is syntactially correct.
    
    Signed-off-by: Johannes Sixt <j6t@kdbg.org>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    j6t authored and gitster committed May 30, 2019
    Configuration menu
    Copy the full SHA
    33be7b3 View commit details
    Browse the repository at this point in the history
Loading