1. 20 4月, 2009 2 次提交
    • J
      add-interactive: refactor mode hunk handling · 7535e5a1
      Jeff King 提交于
      The original implementation considered the mode separately
      from the rest of the hunks, asking about it outside the main
      hunk-selection loop. This patch instead places a mode change
      as the first hunk in the loop. This has two advantages:
      
        1. less duplicated code (since we use the main selection
           loop). This also cleans up an inconsistency, which is
           that the main selection loop separates options with a
           comma, whereas the mode prompt used slashes.
      
        2. users can now skip the mode change and come back to it,
           search for it (via "/mode"), etc, as they can with other
           hunks.
      
      To facilitate this, each hunk is now marked with a "type".
      Mode hunks are not considered for splitting (which would
      make no sense, and also confuses the split_hunk function),
      nor are they editable. In theory, one could edit the mode
      lines and change to a new mode. In practice, there are only
      two modes that git cares about (0644 and 0755), so either
      you want to move from one to the other or not (and you can
      do that by staging or not staging).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7535e5a1
    • M
      git add -p: new "quit" command at the prompt. · cbd3a01e
      Matthieu Moy 提交于
      There's already 'd' to stop staging hunks in a file, but no explicit
      command to stop the interactive staging (for the current files and the
      remaining ones).  Of course you can do 'd' and then ^C, but it would be
      more intuitive to allow 'quit' action.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cbd3a01e
  2. 13 4月, 2009 5 次提交
  3. 09 4月, 2009 11 次提交
  4. 08 4月, 2009 7 次提交
  5. 05 4月, 2009 6 次提交
  6. 03 4月, 2009 7 次提交
  7. 02 4月, 2009 2 次提交