1. 02 9月, 2015 1 次提交
    • D
      refs: make refs/bisect/* per-worktree · ce414b33
      David Turner 提交于
      We need the place we stick refs for bisects in progress to not be
      shared between worktrees.  So we make the refs/bisect/ hierarchy
      per-worktree.
      
      The is_per_worktree_ref function and associated docs learn that
      refs/bisect/ is per-worktree, as does the git_path code in path.c
      
      The ref-packing functions learn that per-worktree refs should not be
      packed (since packed-refs is common rather than per-worktree).
      
      Since refs/bisect is per-worktree, logs/refs/bisect should be too.
      Signed-off-by: NDavid Turner <dturner@twopensource.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ce414b33
  2. 01 8月, 2015 1 次提交
  3. 30 5月, 2015 1 次提交
  4. 05 11月, 2014 1 次提交
  5. 29 5月, 2014 1 次提交
  6. 06 3月, 2014 1 次提交
  7. 07 12月, 2013 2 次提交
  8. 22 11月, 2013 1 次提交
  9. 05 9月, 2013 4 次提交
  10. 16 7月, 2013 3 次提交
  11. 04 7月, 2013 1 次提交
  12. 22 4月, 2013 2 次提交
  13. 16 4月, 2013 3 次提交
  14. 06 4月, 2013 1 次提交
    • J
      glossary: extend "detached HEAD" description · 1d77d249
      Junio C Hamano 提交于
      When we introduced the concept of "detached HEAD", we made sure that
      commands that operate on the history of the current branch "just
      work" in that state.  They update the HEAD to point at the new
      history without affecting any branch when the HEAD is detached, just
      like they update the tip of the "current branch" to point at the new
      history when HEAD points at a specific branch.
      
      As this is done as the natural extension for these commands, we did
      not, we still do not, and we do not want to repeat "A detached HEAD
      is updated without affecting any branch" when describing what each
      and every one of these commands that operates "on the current branch"
      does.
      
      Add a blanket description to the glossary to cover them instead.
      The general principle is that operations to update the branch work
      on and affect the HEAD, while operations to update the information
      about a branch do not.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1d77d249
  15. 02 2月, 2013 3 次提交
  16. 07 8月, 2012 1 次提交
  17. 15 7月, 2012 1 次提交
  18. 24 6月, 2011 3 次提交
  19. 11 5月, 2011 2 次提交
  20. 09 4月, 2011 1 次提交
  21. 07 4月, 2011 1 次提交
    • J
      magic pathspec: add tentative ":/path/from/top/level" pathspec support · 8a42c985
      Junio C Hamano 提交于
      Support ":/" magic string that can be prefixed to a pathspec element to
      say "this names the path from the top-level of the working tree", when
      you are in the subdirectory.
      
      For example, you should be able to say:
      
          $ edit Makefile ;# top-level
          $ cd Documentation
          $ edit git.txt ;# in the subdirectory
      
      and then do one of three things, still inside the subdirectory:
      
          $ git add -u .  ;# add only Documentation/git.txt
          $ git add -u :/ ;# add everything, including paths outside Documentation
          $ git add -u    ;# whatever the default setting is.
      
      To truly support magic pathspec, the API needs to be restructured so that
      get_pathspec() and init_pathspec() are unified into one call.  Currently,
      the former just prefixes the user supplied pathspec with the current
      subdirectory path, and the latter takes the output from the former and
      pre-parses them into a bit richer structure for easier handling.  They
      should become a single API function that takes the current subdirectory
      path and the remainder of argv[] (after parsing --options and revision
      arguments from the command line) and returns an array of parsed pathspec
      elements, and "magic" should become attributes of struct pathspec_item.
      
      This patch implements only "top" magic because it can be hacked into the
      system without such a refactoring.
      
      The syntax for magic pathspec prefix is designed to be extensible yet
      simple to type to invoke a simple magic like "from the top".  The parser
      for the magic prefix is hooked into get_pathspec() function in this patch,
      and it needs to be moved when we refactor the API.
      
      But we have to start from somewhere.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8a42c985
  22. 04 2月, 2011 1 次提交
  23. 04 11月, 2010 1 次提交
  24. 25 10月, 2009 1 次提交
  25. 10 10月, 2009 1 次提交
  26. 08 4月, 2009 1 次提交