1. 28 1月, 2006 7 次提交
  2. 27 1月, 2006 5 次提交
  3. 26 1月, 2006 7 次提交
  4. 25 1月, 2006 10 次提交
  5. 23 1月, 2006 3 次提交
  6. 22 1月, 2006 8 次提交
    • J
      git-grep: clarification on parameters. · 5b2bcc7b
      Junio C Hamano 提交于
      We forgot to make sure that there is no more than one pattern
      parameter.  Also when looking for files in a directory called
      '--others', it passed that path limiter without preceding the
      end-of-options marker '--' to underlying git-ls-files, which
      misunderstood it as one of its options instead.
      
      	$ git grep --others -e Meta/Make Meta
      	$ git grep -o -e Meta/Make Meta
      	$ git grep -o Meta/Make Meta
      
      look for a string "Meta/Make" from untracked files in Meta/
      directory.
      
      	$ git grep Meta/Make --others
      
      looks for the same string from tracked files in ./--others
      directory.
      
      On the other hand,
      
      	$ git grep -e Meta/Make --others
      
      does not have a freestanding pattern, so everybody is parameter
      and there is no path specifier.  It looks for the string in all
      the untracked files without any path limiter.
      
      [jc: updated with usability enhancements and documentation
      cleanups from Sean.]
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5b2bcc7b
    • J
      Undef DT_* before redefining them. · 0bdd79af
      Junio C Hamano 提交于
      When overriding DT_* macro detection with NO_D_TYPE_IN_DIRENT (recent
      Cygwin build problem, which hopefully is already fixed in their CVS
      snapshot version), we define DTYPE() macro to return just "we do not
      know", but still needed to use DT_* macro to avoid ifdef in the code
      we use them.  If the platform defines DT_* macro but with unusable
      d_type, this would have resulted in us redefining these preprocessor
      symbols.
      
      Admittedly, that would be just a couple of compilation warnings, and
      on Cygwin at least this particular problem is transitory (the problem
      is already fixed in their CVS snapshot version), so this is a low
      priority fix.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0bdd79af
    • J
      t4011: "sleep 1" is not enough on FAT · 5df9140c
      Junio C Hamano 提交于
      This test depended on "sleep 1" to be enough to dirty the index
      entry for a symlink.  Alex noticed that on his Cygwin installation
      "sleep 1" was sometimes not enough, and after further discussion with
      Christopher Faylor, it was brought up that on FAT filesystem timestamp
      granularity is 2 seconds so sleeping 1 second is not enough.
      
      For now this patch takes an easy workaround of sleeping for 3 seconds.
      
      Very strictly speaking, POSIX requires lstat to fill only S_IFMT part
      of st_mode and st_size for symlinks, and depending on timestamp might
      be considered a bug, but we depend on that anyway, so it is better to
      test that.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5df9140c
    • J
      DT_UNKNOWN: do not fully trust existence of DT_UNKNOWN · 63be37b0
      Junio C Hamano 提交于
      The recent Cygwin defines DT_UNKNOWN although it does not have d_type
      in struct dirent.  Give an option to tell us not to use d_type on such
      platforms.  Hopefully this problem will be transient.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      63be37b0
    • J
      fsck-objects: support platforms without d_ino in struct dirent. · 35a730f0
      Junio C Hamano 提交于
      The d_ino field is only used for performance reasons in
      fsck-objects.  On a typical filesystem, i-number tends to have a
      strong correlation with where the actual bits sit on the disk
      platter, and we sort the entries to allow us scan things that
      ought to be close together together.
      
      If the platform lacks support for it, it is not a big deal.
      Just do not use d_ino for sorting, and scan them unsorted.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      35a730f0
    • J
      Makefile: do not assume lack of IPV6 means no sockaddr_storage. · bdc37f5a
      Junio C Hamano 提交于
      Noticed first by Alex, that the latest Cygwin now properly has
      sockaddr_storage.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bdc37f5a
    • J
      Mention install-doc in INSTALL · eff351c9
      J. Bruce Fields 提交于
      I think most people will want to install the man pages as well.
      
      [jc: incorporated Pasky's comment on not building them as root.
      Some people may not want to install asciidoc/xmlto toolchain, so
      redirect them to the man and html branches of the git.git
      repository as well.]
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      eff351c9
    • P
      Document git-ls-files --directory · a3259570
      Petr Baudis 提交于
      Add the appropriate bit of documentation.
      Signed-off-by: NPetr Baudis <pasky@suse.cz>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a3259570