1. 25 9月, 2005 1 次提交
  2. 21 9月, 2005 1 次提交
    • J
      Show modified files in git-ls-files · b0391890
      Junio C Hamano 提交于
      Add -m/--modified to show files that have been modified wrt. the index.
      
      [jc: The original came from Brian Gerst on Sep 1st but it only checked
      if the paths were cache dirty without actually checking the files were
      modified.  I also added the usage string and a new test.]
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b0391890
  3. 12 9月, 2005 1 次提交
  4. 17 8月, 2005 1 次提交
  5. 30 7月, 2005 1 次提交
    • P
      [PATCH] mmap error handling · e35f9824
      Pavel Roskin 提交于
      I have reviewed all occurrences of mmap() in git and fixed three types
      of errors/defects:
      
      1) The result is not checked.
      2) The file descriptor is closed if mmap() succeeds, but not when it
      fails.
      3) Various casts applied to -1 are used instead of MAP_FAILED, which is
      specifically defined to check mmap() return value.
      
      [jc: This is a second round of Pavel's patch.  He fixed up the problem
      that close() potentially clobbering the errno from mmap, which
      the first round had.]
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e35f9824
  6. 15 7月, 2005 1 次提交
  7. 26 6月, 2005 1 次提交
    • J
      [PATCH] Fix oversimplified optimization for add_cache_entry(). · b155725d
      Junio C Hamano 提交于
      An earlier change to optimize directory-file conflict check
      broke what "read-tree --emu23" expects.  This is fixed by this
      commit.
      
      (1) Introduces an explicit flag to tell add_cache_entry() not to
          check for conflicts and use it when reading an existing tree
          into an empty stage --- by definition this case can never
          introduce such conflicts.
      
      (2) Makes read-cache.c:has_file_name() and read-cache.c:has_dir_name()
          aware of the cache stages, and flag conflict only with paths
          in the same stage.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b155725d
  8. 19 6月, 2005 2 次提交
    • L
      read-cache.c: remove stray debugging printf · 2160a025
      Linus Torvalds 提交于
      Pointed out by Junio, part of my debugging of the rewrite of the
      file/dir conflict handling.
      2160a025
    • L
      Re-implement "check_file_directory_conflict()" · 12676608
      Linus Torvalds 提交于
      This is (imho) more readable, and is also a lot faster.  The expense of
      looking up sub-directory beginnings was killing us on things like
      "git-diff-cache", even though that one didn't even care at all about the
      file vs directory conflicts.
      
      We really only care when somebody tries to add a conflicting name to
      stage 0.
      
      We should go through the conflict rules more carefully some day.
      12676608
  9. 10 6月, 2005 2 次提交
  10. 08 6月, 2005 1 次提交
  11. 28 5月, 2005 1 次提交
    • D
      [PATCH] check_file_directory_conflict path fix · 8310c2c0
      David Meybohm 提交于
      check_file_directory_conflict can give the wrong answers. This is
      because the wrong length is passed to cache_name_pos. The length
      passed should be the length of the whole path from the root, not
      the length of each path subcomponent.
      
      	$ git-init-db
      	defaulting to local storage area
      	$ mkdir path && touch path/file
      	$ git-update-cache --add path/file
      	$ rm path/file
      	$ mkdir path/file && touch path/file/f
      	$ git-update-cache --add path/file/f  <-- Conflict ignored
      	$
      Signed-off-by: NDavid Meybohm <dmeybohmlkml@bellsouth.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8310c2c0
  12. 23 5月, 2005 2 次提交
    • L
      Don't care about st_dev in the index file · 2cb45e95
      Linus Torvalds 提交于
      Thomas Glanzmann points out that it doesn't work well with different
      clients accessing the repository over NFS - they have different views
      on what the "device" for the filesystem is.
      
      Of course, other filesystems may not even have stable inode numbers.
      But we don't care. At least for now.
      2cb45e95
    • L
      Include file cleanups.. · 6b0c3121
      Linus Torvalds 提交于
      Add <limits.h> to the include files handled by "cache.h", and remove
      extraneous #include directives from various .c files. The rule is that
      "cache.h" gets all the basic stuff, so that we'll have as few system
      dependencies as possible.
      6b0c3121
  13. 21 5月, 2005 1 次提交
  14. 20 5月, 2005 1 次提交
  15. 18 5月, 2005 1 次提交
  16. 15 5月, 2005 2 次提交
  17. 09 5月, 2005 1 次提交
  18. 08 5月, 2005 2 次提交
  19. 07 5月, 2005 2 次提交
  20. 06 5月, 2005 1 次提交
  21. 05 5月, 2005 1 次提交
  22. 27 4月, 2005 2 次提交
  23. 23 4月, 2005 1 次提交
    • L
      New "diff-cache" implementation. · b5af9107
      Linus Torvalds 提交于
      This one is about a million times simpler, and much more likely to be
      correct too.
      
      Instead of trying to match up a tree object against the index, we just
      read in the tree object side-by-side into the index, and just walk the
      resulting index file. This was what all the read-tree cleanups were
      all getting to.
      b5af9107
  24. 22 4月, 2005 2 次提交
  25. 21 4月, 2005 2 次提交
  26. 19 4月, 2005 2 次提交
  27. 18 4月, 2005 2 次提交
  28. 17 4月, 2005 2 次提交