1. 09 7月, 2007 16 次提交
  2. 08 7月, 2007 11 次提交
  3. 07 7月, 2007 10 次提交
  4. 06 7月, 2007 3 次提交
    • J
      Teach git-stash to "apply --index" · 150937c4
      Johannes Schindelin 提交于
      When given this subcommand, git-stash will try to merge the stashed
      index into the current one. Only trivial merges are possible, since
      we have no index for the index ;-) If a trivial merge is not possible,
      git-stash will bail out with a hint to skip the --index option.
      
      For good measure, finally include a test case.
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      150937c4
    • J
      Per-path attribute based hunk header selection. · f258475a
      Junio C Hamano 提交于
      This makes"diff -p" hunk headers customizable via gitattributes mechanism.
      It is based on Johannes's earlier patch that allowed to define a single
      regexp to be used for everything.
      
      The mechanism to arrive at the regexp that is used to define hunk header
      is the same as other use of gitattributes.  You assign an attribute, funcname
      (because "diff -p" typically uses the name of the function the patch is about
      as the hunk header), a simple string value.  This can be one of the names of
      built-in pattern (currently, "java" is defined) or a custom pattern name, to
      be looked up from the configuration file.
      
        (in .gitattributes)
        *.java   funcname=java
        *.perl   funcname=perl
      
        (in .git/config)
        [funcname]
          java = ... # ugly and complicated regexp to override the built-in one.
          perl = ... # another ugly and complicated regexp to define a new one.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f258475a
    • J
      Future-proof source for changes in xdemitconf_t · 30b25010
      Johannes Schindelin 提交于
      The instances of xdemitconf_t were initialized member by member.
      Instead, initialize them to all zero, so we do not have
      to update those places each time we introduce a new member.
      
      [jc: minimally fixed by getting rid of a new global]
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      30b25010