1. 17 12月, 2006 2 次提交
  2. 12 12月, 2006 11 次提交
    • J
      gitweb: SHA-1 in commit log message links to "object" view · bfe2191f
      Jakub Narebski 提交于
      Instead of checking if explicit SHA-1 in commit log message is sha1 of
      commit and making link to "commit" view, make [fragment of] explicit
      SHA-1 in commit log message link to "object" view.  While at it allow
      to hyperlink also shortened SHA-1, from 8 characters up to full SHA-1,
      instead of requiring full 40 characters of SHA-1.
      
      This makes the following changes:
      
       * SHA-1 of objects which no longer exists, for example in commit
         cherry-picked from no longer existing temporary branch, or revert
         of commit in rebased branch, are no longer marked as such by not
         being made into hyperlink (and not having default hyperlink view:
         being underlined among others).  On the other hand it makes gitweb
         to not write error messages when object is not found to web serwer
         log; it also moves cost of getting type and SHA-1 validation to
         when link is clicked, and not only viewed.
      
       * SHA-1 of other objects: blobs, trees, tags are also hyperlinked
         and lead to appropriate view (although in the case of tags it is
         more natural to just use tag name).
      
       * You can put shortened SHA-1 of commit in the commit message, and it
         would be hyperlinked; it would be checked on clicking if abbrev is
         unique.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bfe2191f
    • J
      gitweb: Hyperlink target of symbolic link in "tree" view (if possible) · 3bf9d570
      Jakub Narebski 提交于
      Make symbolic link target in "tree" view into hyperlink to generic
      "object" view (as we don't know if the link target is file (blob) or
      directory (tree), and if it exist at all).
      
      Target of link is made into hyperlink when:
       * hash_base is provided (otherwise we cannot find hash
         of link target)
       * link is relative
       * in no place link goes out of root tree (top dir)
      
      Full path of symlink target from the root dir is provided in the title
      attribute of hyperlink.
      
      Currently symbolic link name uses ordinary file style (hidden
      hyperlink), while the hyperlink to symlink target uses default
      hyperlink style, so it is underlined while link target which is not
      made into hyperlink is not underlined.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3bf9d570
    • J
      gitweb: Add generic git_object subroutine to display object of any type · ca94601c
      Jakub Narebski 提交于
      Add generic "object" view implemented in git_object subroutine, which is
      used to display object of any type; to be more exact it redirects to the
      view of correct type: "blob", "tree", "commit" or "tag".  To identify object
      you have to provide either hash (identifier of an object), or (in the case of
      tree and blob objects) hash of commit object (hash_base) and path (file_name).
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ca94601c
    • J
      gitweb: Show target of symbolic link in "tree" view · e33fba4c
      Jakub Narebski 提交于
      In "tree" view (git_print_tree_entry subroutine), for entries which are
      symbolic links, add " -> link_target" after file name (a la "ls -l").
      
      Link target is _not_ hyperlinked.
      
      While at it, correct whitespaces (tabs are for aling, spaces are for indent)
      in modified git_print_tree_entry subroutine.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e33fba4c
    • J
      gitweb: Don't use Content-Encoding: header in git_snapshot · 9aa17573
      Jakub Narebski 提交于
      Do not use Content-Encoding: HTTP header in git_snapshot, using
      instead type according to the snapshot type (compression type).
      Some of web browser take Content-Encoding: to be _transparent_
      also for downloading, and store decompressed file (with incorrect
      compression suffix) on download.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9aa17573
    • J
      shortlog: fix segfault on empty authorname · 6f987258
      Junio C Hamano 提交于
      The old code looked backwards from the email address to parse
      the name, allowing an arbitrary number of spaces between the
      two. However, in the case of no name, we looked back too far to
      the 'author' (or 'Author:') header.
      
      The bug was triggered by commit febf7ea4bed from linux-2.6.
      
      Jeff King originally fixed it by looking back only one
      character; Johannes Schindelin pointed out that we could try
      harder while at it to cope with commits with broken headers.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6f987258
    • J
      shortlog: remove "[PATCH]" prefix from shortlog output · bca73251
      Junio C Hamano 提交于
      Originally noticed by Nicolas Pitre; the real cause was the code
      was prepared to deal with [PATCH] (and [PATCH n/m whatever])
      prefixes but forgot that the string can be indented while acting
      as a filter.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bca73251
    • J
      Merge branch 'maint' · 73c7f5ec
      Junio C Hamano 提交于
      * maint:
        Make sure the empty tree exists when needed in merge-recursive.
        Don't use memcpy when source and dest. buffers may overlap
        no need to install manpages as executable
      73c7f5ec
    • S
      Make sure the empty tree exists when needed in merge-recursive. · 9abd46a3
      Shawn O. Pearce 提交于
      There are some baseless merge cases where git-merge-recursive will
      try to compare one of the branches against the empty tree.  However
      most projects won't have the empty tree object in their object database
      as Git does not normally create empty tree objects.  If the empty tree
      object is missing then the merge process will die, as it cannot load the
      object from the database.  The error message may make the user think that
      their database is corrupt when its actually not.
      
      So instead we should just create the empty tree object whenever it is
      needed.  If the object already exists as a loose object then no harm
      done.  Otherwise that loose object will be pruned away later by either
      git-prune or git-prune-packed.
      
      Thanks goes to Junio for suggesting this fix.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9abd46a3
    • J
      Don't use memcpy when source and dest. buffers may overlap · 554a2636
      Jim Meyering 提交于
      git-index-pack can call memcpy with overlapping source and destination
      buffers.  The patch below makes it use memmove instead.
      
      If you want to demonstrate a failure, add the following two lines
      
      +               if (input_offset < input_len)
      +                 abort ();
      
      before the existing memcpy call (shown in the patch below),
      and then run this:
      
        (cd t; sh ./t5500-fetch-pack.sh)
      Signed-off-by: NJim Meyering <jim@meyering.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      554a2636
    • C
      no need to install manpages as executable · d44c92d6
      Chris Wright 提交于
      No need to install manpages as executable.  Noticed by Ville Skytt,Ad(B.
      Signed-off-by: NChris Wright <chrisw@sous-sol.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d44c92d6
  3. 09 12月, 2006 6 次提交
  4. 08 12月, 2006 2 次提交
  5. 07 12月, 2006 13 次提交
    • J
      Merge branch 'maint' · efe2c9e0
      Junio C Hamano 提交于
      * maint:
        cvsserver: Avoid miscounting bytes in Perl v5.8.x
      efe2c9e0
    • M
      cvsserver: Avoid miscounting bytes in Perl v5.8.x · 4f88d3e0
      Martin Langhoff 提交于
      At some point between v5.6 and 5.8 Perl started to assume its input,
      output and filehandles are UTF-8. This breaks the counting of bytes
      for the CVS protocol, resulting in the client expecting less data
      than we actually send, and storing truncated files.
      Signed-off-by: NMartin Langhoff <martin@catalyst.net.nz>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4f88d3e0
    • N
      change the unpack limit treshold to a saner value · 46732fae
      Nicolas Pitre 提交于
      Currently the treshold is 5000.  The likelihood of this value to ever be
      crossed for a single push is really small making it not really useful.
      
      The optimal treshold for a pure space saving on a filesystem with 4kb
      blocks is 3.  However this is likely to create many small packs
      concentrating a large number of files in a single directory compared to
      the same objects which are spread over 256 directories when loose.  This
      means we would need 512 objects per pack on average to approximagte the
      same directory cost (a pack has 2 files because of the index).
      
      But 512 is a really high value just like 5000 since most pushes are
      unlikely to have that many objects.  So let's try with a value of 100
      which should have a good balance between small pushes going to be
      exploded into loose objects and large pushes kept as whole packs.
      
      This is not a replacement for periodic repacks of course.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      46732fae
    • J
      Documentation: reorganize cvs-migration.txt · cd976f5c
      J. Bruce Fields 提交于
      Modify cvs-migration.txt so it explains first how to develop against a
      shared repository, then how to set up a shared repository, then how to
      import a repository from cvs.  Though this seems chronologically
      backwards, it's still readable in this order, and it puts the more
      commonly needed material closer to the front.
      
      Remove the annotate/pickaxe section; perhaps it can find a place elsewhere
      in the future.  Remove most of the "why git is better than cvs" stuff from
      the introduction.
      
      Add some minor clarifications, including two that have come up several
      times on the mailing list:
      
      	1. Recommend committing any changes before running pull.
      	2. Note that changes must be commited before they can be pushed.
      
      Update the clone discussion to reflect the new --use-separate-remotes
      default, and add a brief mention of git-cvsserver.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cd976f5c
    • J
      git-merge: fix "fix confusion between tag and branch" for real · de51faf3
      Junio C Hamano 提交于
      An earlier commit 3683dc5a broke the merge message generation with
      a careless use of && where it was not needed, breaking the merge
      message for cases where non branches are given.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      de51faf3
    • E
      git-svn: avoid network timeouts for long-running fetches · ebdf7b95
      Eric Wong 提交于
      Long-running fetches run inside children to avoid memory leaks.
      When we refork, the connection in the parent can be idle for a
      long time; attempting to reuse it in the next child can result
      in timeouts.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ebdf7b95
    • J
      gitweb: Allow PNG, GIF, JPEG images to be displayed in "blob" view · 5a4cf334
      Jakub Narebski 提交于
      Allow images in one of web formats (PNG, GIF, JPEG) - actually files
      with mimetype of image/png, image/git, image/jpeg - to be displayed in
      "blob" view using <img /> element, instead of using "blob_plain" view
      for them, like for all other files except also text/* mimetype files.
      
      This makes possible to easily go to file history, to HEAD version of
      the file, to appropriate commit etc; all of those are not available
      in "blob_plain" (raw) view.
      
      Only text files can have "blame" view link in the formats part of
      navbar.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5a4cf334
    • J
      git-merge: squelch needless error message. · 211e6eb5
      Junio C Hamano 提交于
      While deciding if the new style command line argument is a tag
      or a branch, we checked it with "git show-ref -s --verify" to
      see if results in an error, but when it is not a branch, the
      check leaked the error message out, which was not needed to be
      shown to the end user.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      211e6eb5
    • J
      Merge · c0b7391b
      Junio C Hamano 提交于
      c0b7391b
    • J
      Merge branch 'maint' · 2d13b732
      Junio C Hamano 提交于
      * maint:
        git-reset to remove "$GIT_DIR/MERGE_MSG"
        unpack-trees: make sure "df_conflict_entry.name" is NUL terminated.
      2d13b732
    • J
      git-reset to remove "$GIT_DIR/MERGE_MSG" · 49ed2bc4
      Junio C Hamano 提交于
      An earlier commit a9cb3c6e changed git-commit to use the
      contents of MERGE_MSG even when we do not have MERGE_HEAD (the
      rationale is in its log message).
      
      However, the change tricks the following sequence to include a
      merge message in a completely unrelated commit:
      
      	$ git pull somewhere
      	: oops, the conflicts are too much.  forget it.
              $ git reset --hard
              : work work work
              $ git commit
      
      To fix this confusion, this patch makes "git reset" to remove
      the leftover MERGE_MSG that was prepared when the user abandoned
      the merge.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Acked-by: Luben Tuikov <ltuikov@yahoo.com
      49ed2bc4
    • J
      cvs-migration: improved section titles, better push/commit explanation · 4003a58e
      J. Bruce Fields 提交于
      Rename the section titles to make the "how-to" content of the section
      obvious.  Also clarify that changes have to be commited before they can
      be pushed.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4003a58e
    • J
      cvs-migration document: make the need for "push" more obvious · 3a9f1a55
      Johannes Schindelin 提交于
      It really is an important concept to grasp for people coming
      from CVS. Even if it is briefly mentioned, it is not obvious
      enough to sink in.
      
      [jc: with wording updates from J. Bruce Fields]
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3a9f1a55
  6. 05 12月, 2006 6 次提交