1. 06 11月, 2007 15 次提交
  2. 05 11月, 2007 1 次提交
  3. 04 11月, 2007 15 次提交
  4. 03 11月, 2007 9 次提交
    • N
      git-fetch: more terse fetch output · 165f3902
      Nicolas Pitre 提交于
      This makes the fetch output much more terse and prettier on a 80 column
      display, based on a consensus reached on the mailing list.  Here's an
      example output:
      
      Receiving objects: 100% (5439/5439), 1.60 MiB | 636 KiB/s, done.
      Resolving deltas: 100% (4604/4604), done.
      From git://git.kernel.org/pub/scm/git/git
       ! [rejected]        html -> origin/html  (non fast forward)
         136e6316..f45e867b  maint -> origin/maint  (fast forward)
         9850e2e..44dd7e0  man -> origin/man  (fast forward)
         3e4bb087..e3d6d56f  master -> origin/master  (fast forward)
         fa3665c..536f64a  next -> origin/next  (fast forward)
       + 4f6d9d6...768326f pu -> origin/pu  (forced update)
       * [new branch]      todo -> origin/todo
      
      Some portions of this patch have been extracted from earlier proposals
      by Jeff King and Shawn Pearce.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      165f3902
    • J
      gitweb: Use config file for repository description and URLs · 0e121a2c
      Jakub Narebski 提交于
      Allow to use configuration variable gitweb.description for repository
      description if there is no $GIT_DIR/description file, and multivalued
      configuration variable gitweb.url for URLs of a project (to clone or
      fetch from) if there is no $GIT_DIR/cloneurl file.
      
      While repository description is shown in the projects list page, so it
      is better to use file and not config variable for performance, it is I
      think better to use gitweb.url for URLs (as it is shown only on
      project summary page).
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0e121a2c
    • J
      gitweb: Read repo config using 'git config -z -l' · b201927a
      Jakub Narebski 提交于
      Change git_get_project_config to run git-config only once per
      repository, without changing its signature (its calling convention).
      This means for example that it returns 'true' or 'false' when called
      with second argument '--bool', and not true or false value.
      
      Instead of calling 'git config [<type>] --get gitweb.<key>' once for
      each config variable, call 'git config -z -l' only once, parsing and
      saving its output to %config variable.  This makes possible to add new
      per repository configuration without paying cost of forking once per
      variable checked.  We can now allow repository description and
      repository URLs to be stored in config file without badly affecting
      gitweb performance.
      
      For now only configuration variables for 'gitweb' section are stored.
      
      Multiple values for single configuration variable are stored as
      anonymous array reference; configuration variable with no value is
      stored as undef.
      
      Converting configuration variable values to boolean or integer value
      are done in Perl.  Results differ from git-config in the fact that no
      conversion error is ever raised.  For boolean values no value, 'true'
      (any case) and 'false' (any case) are considered true, numbers are
      true if not zero; all other values (even invalid for bool) are
      considered false.  For integer values value suffix of 'k', 'm', or 'g'
      following decimal number will cause the value to be multiplied by
      1024, 1048576, or 1073741824; other values are returned as-is, only
      whitespace stripped.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b201927a
    • J
      gitweb: Add tests for overriding gitweb config with repo config · e9c34c23
      Jakub Narebski 提交于
      Make blame view and snapshot support overridable by repository
      config. Test tree view with both features disabled, and with both
      features enabled.
      
      Test with features enabled also tests multiple formats snapshot
      support (in tree view).
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e9c34c23
    • J
    • J
      cherry-pick/revert -m: add tests · 6232b343
      Junio C Hamano 提交于
      This adds a new test to check cherry-pick/revert of a merge
      commit.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6232b343
    • J
      Merge branch 'maint' · e3d6d56f
      Junio C Hamano 提交于
      * maint:
        Fixing path quoting in git-rebase
        Remove unecessary hard-coding of EDITOR=':' VISUAL=':' in some test suites.
        Documentation: quote commit messages consistently.
        Remove escaping of '|' in manpage option sections
      e3d6d56f
    • J
      Merge branch 'ph/parseopt' · 3d66dc96
      Junio C Hamano 提交于
      * ph/parseopt: (24 commits)
        gc: use parse_options
        Fixed a command line option type for builtin-fsck.c
        Make builtin-pack-refs.c use parse_options.
        Make builtin-name-rev.c use parse_options.
        Make builtin-count-objects.c use parse_options.
        Make builtin-fsck.c use parse_options.
        Update manpages to reflect new short and long option aliases
        Make builtin-for-each-ref.c use parse-opts.
        Make builtin-symbolic-ref.c use parse_options.
        Make builtin-update-ref.c use parse_options
        Make builtin-revert.c use parse_options.
        Make builtin-describe.c use parse_options
        Make builtin-branch.c use parse_options.
        Make builtin-mv.c use parse-options
        Make builtin-rm.c use parse_options.
        Port builtin-add.c to use the new option parser.
        parse-options: allow callbacks to take no arguments at all.
        parse-options: Allow abbreviated options when unambiguous
        Add shortcuts for very often used options.
        parse-options: make some arguments optional, add callbacks.
        ...
      
      Conflicts:
      
      	Makefile
      	builtin-add.c
      3d66dc96
    • J
      Merge branch 'np/progress' · 265ae188
      Junio C Hamano 提交于
      * np/progress:
        Show total transferred as part of throughput progress
        make sure throughput display gets updated even if progress doesn't move
        return the prune-packed progress display to the inner loop
        add throughput display to git-push
        add some copyright notice to the progress display code
        add throughput display to index-pack
        add throughput to progress display
        relax usage of the progress API
        make struct progress an opaque type
        prune-packed: don't call display_progress() for every file
        Stop displaying "Pack pack-$ID created." during git-gc
        Teach prune-packed to use the standard progress meter
        Change 'Deltifying objects' to 'Compressing objects'
        fix for more minor memory leaks
        fix const issues with some functions
        pack-objects.c: fix some global variable abuse and memory leaks
        pack-objects: no delta possible with only one object in the list
        cope with multiple line breaks within sideband progress messages
        more compact progress display
      265ae188