1. 07 2月, 2007 6 次提交
    • S
      Minor timestamp related documentation corrections for fast-import. · 9b92c82f
      Shawn O. Pearce 提交于
      As discussed on the mailing list, the documentation used here was
      not quite accurate.  Improve upon it.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      9b92c82f
    • J
      S_IFLNK != 0140000 · 9981b6d9
      Junio C Hamano 提交于
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      9981b6d9
    • S
      Don't do non-fastforward updates in fast-import. · 7073e69e
      Shawn O. Pearce 提交于
      If fast-import is being used to update an existing branch of
      a repository, the user may not want to lose commits if another
      process updates the same ref at the same time.  For example, the
      user might be using fast-import to make just one or two commits
      against a live branch.
      
      We now perform a fast-forward check during the ref updating process.
      If updating a branch would cause commits in that branch to be lost,
      we skip over it and display the new SHA1 to standard error.
      
      This new default behavior can be overridden with `--force`, like
      git-push and git-fetch.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      7073e69e
    • S
      Support RFC 2822 date parsing in fast-import. · 63e0c8b3
      Shawn O. Pearce 提交于
      Since some frontends may be working with source material where
      the dates are only readily available as RFC 2822 strings, it is
      more friendly if fast-import exposes Git's parse_date() function
      to handle the conversion.  This way the frontend doesn't need
      to perform the parsing itself.
      
      The new --date-format option to fast-import can be used by a
      frontend to select which format it will supply date strings in.
      The default is the standard `raw` Git format, which fast-import
      has always supported.  Format rfc2822 can be used to activate the
      parse_date() function instead.
      
      Because fast-import could also be useful for creating new, current
      commits, the format `now` is also supported to generate the current
      system timestamp.  The implementation of `now` is a trivial call
      to datestamp(), but is actually a whole whopping 3 lines so that
      fast-import can verify the frontend really meant `now`.
      
      As part of this change I have added validation of the `raw` date
      format.  Prior to this change fast-import would accept anything
      in a `committer` command, even if it was seriously malformed.
      Now fast-import requires the '> ' near the end of the string and
      verifies the timestamp is formatted properly.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      63e0c8b3
    • S
      Minor fast-import documentation corrections. · ef94edb5
      Shawn O. Pearce 提交于
      Corrected a couple of header markup lines which were shorter than the
      actual header, and made the `data` commands two formats into a named
      list, which matches how we document the two formats of the `M` command
      within a commit.
      
      Also tried to simplify the language about our decimal integer format;
      Linus pointed out I was probably being too specific at the cost of
      reduced readability.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      ef94edb5
    • S
      Correct fast-import timezone documentation. · c74ba3d3
      Shawn O. Pearce 提交于
      Andy Parkins and Linus Torvalds both noticed that the description
      of the timezone was incorrect.  Its not expressed in minutes.
      Its more like "hhmm", where "hh" is the number of hours and "mm"
      is the number of minutes shifted from GMT/UTC.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      c74ba3d3
  2. 06 2月, 2007 2 次提交
    • S
      Remove --branch-log from fast-import. · 0b868e02
      Shawn O. Pearce 提交于
      The --branch-log option and its associated code hasn't been used in
      several months, as its not really very useful for debugging fast-import
      or a frontend.  I don't plan on supporting it in this state long-term,
      so I'm killing it now before it gets distributed to a wider audience.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      0b868e02
    • S
      Initial draft of fast-import documentation. · 6e411d20
      Shawn O. Pearce 提交于
      This is a first pass at the manpage for git-fast-import.
      
      I have tried to cover the input format in extreme detail, creating a
      reference which is more detailed than the BNF grammar appearing in
      the header of fast-import.c.  I have also covered some details about
      gfi's performance and memory utilization, as well as the average
      learning curve required to create a gfi frontend application (as it
      is far lower than it might appear on first glance).
      
      The documentation still lacks real example input streams, which may
      turn out to be difficult to format in asciidoc due to the blank lines
      which carry meaning within the format.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      6e411d20
  3. 29 1月, 2007 5 次提交
  4. 28 1月, 2007 3 次提交
    • J
      Update describe documentation. · 1891261e
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1891261e
    • B
      Document --check option to git diff. · 16507fcf
      Bill Lear 提交于
      Signed-off-by: NBill Lear <rael@zopyra.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      16507fcf
    • A
      Allow the tag signing key to be specified in the config file · d67778ec
      Andy Parkins 提交于
      I did this:
      
        $ git tag -s test-sign
        gpg: skipped "Andy Parkins <andyparkins@gmail.com>": secret key not available
        gpg: signing failed: secret key not available
        failed to sign the tag with GPG.
      
      The problem is that I have used the comment field in my key's UID
      definition.
      
        $ gpg --list-keys andy
        pub   1024D/4F712F6D 2003-08-14
        uid                  Andy Parkins (Google) <andyparkins@gmail.com>
      
      So when git-tag looks for "Andy Parkins <andyparkins@gmail.com>";
      obviously it's not going to be found.
      
      There shouldn't be a requirement that I use the same form of my name in
      my git repository and my gpg key - I might want to be formal (Andrew) in
      my gpg key and informal (Andy) in the repository.  Further I might have
      multiple keys in my keyring, and might want to use one that doesn't
      match up with the address I use in commit messages.
      
      This patch adds a configuration entry "user.signingkey" which, if
      present, will be passed to the "-u" switch for gpg, allowing the tag
      signing key to be overridden.  If the entry is not present, the fallback
      is the original method, which means existing behaviour will continue
      untouched.
      Signed-off-by: NAndy Parkins <andyparkins@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d67778ec
  5. 26 1月, 2007 2 次提交
  6. 25 1月, 2007 8 次提交
  7. 23 1月, 2007 1 次提交
    • J
      Documentation/config.txt: Document config file syntax better · e136f33b
      Jakub Narebski 提交于
      Separate part of Documentation/config.txt which deals with git config file
      syntax into "Syntax" subsection, and expand it.  Add information about
      subsections, boolean values, escaping and escape sequences in string
      values, and continuing variable value on the next line.
      
      Add also proxy settings to config file example to show example of
      partially enclosed in double quotes string value.
      
      Parts based on comments by Junio C Hamano, Johannes Schindelin,
      config.c, and the smb.conf(5) man page.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e136f33b
  8. 22 1月, 2007 3 次提交
  9. 21 1月, 2007 5 次提交
  10. 20 1月, 2007 5 次提交
    • J
      show-branch --reflog: show the reflog message at the top. · 76a44c5c
      Junio C Hamano 提交于
      This changes the output so the list at the top shows the reflog
      message, along with their relative timestamps.
      
      You can use --reflog=<n> to show <n> most recent log entries, or
      use --reflog=<n>,<b> to show <n> entries going back from the
      entry <b>.  <b> can be either a number (so --reflog=4,20 shows 4
      records starting from @{20}) or a timestamp (e.g. --reflog='4,1 day').
      
      Here is a sample output (with --list option):
      
        $ git show-branch --reflog=10 --list jc/show-reflog
          [jc/show-reflog@{0}] (3 minutes ago) commit (amend): show-branch --ref
          [jc/show-reflog@{1}] (5 minutes ago) reset HEAD^
          [jc/show-reflog@{2}] (14 minutes ago) commit: show-branch --reflog: sho
          [jc/show-reflog@{3}] (14 minutes ago) commit: show-branch --reflog: sho
          [jc/show-reflog@{4}] (18 minutes ago) commit (amend): Extend read_ref_a
          [jc/show-reflog@{5}] (18 minutes ago) commit (amend): Extend read_ref_a
          [jc/show-reflog@{6}] (18 minutes ago) commit (amend): Extend read_ref_a
          [jc/show-reflog@{7}] (18 minutes ago) am: read_ref_at(): allow retrievi
          [jc/show-reflog@{8}] (18 minutes ago) reset --hard HEAD~4
          [jc/show-reflog@{9}] (61 minutes ago) commit: show-branch --reflog: use
      
      This shows what I did more cleanly:
      
        $ git show-branch --reflog=10 jc/show-reflog
        ! [jc/show-reflog@{0}] (3 minutes ago) commit (amend): show-branch --ref
         ! [jc/show-reflog@{1}] (5 minutes ago) reset HEAD^
          ! [jc/show-reflog@{2}] (14 minutes ago) commit: show-branch --reflog:
           ! [jc/show-reflog@{3}] (14 minutes ago) commit: show-branch --reflog:
            ! [jc/show-reflog@{4}] (18 minutes ago) commit (amend): Extend read_
             ! [jc/show-reflog@{5}] (18 minutes ago) commit (amend): Extend read
              ! [jc/show-reflog@{6}] (18 minutes ago) commit (amend): Extend rea
               ! [jc/show-reflog@{7}] (18 minutes ago) am: read_ref_at(): allow
                ! [jc/show-reflog@{8}] (18 minutes ago) reset --hard HEAD~4
                 ! [jc/show-reflog@{9}] (61 minutes ago) commit: show-branch --r
        ----------
        +          [jc/show-reflog@{0}] show-branch --reflog: show the reflog
          +        [jc/show-reflog@{2}] show-branch --reflog: show the reflog
         +++       [jc/show-reflog@{1}] show-branch --reflog: show the reflog
        +++++      [jc/show-reflog@{4}] Extend read_ref_at() to be usable fro
             +     [jc/show-reflog@{5}] Extend read_ref_at() to be usable fro
              +    [jc/show-reflog@{6}] Extend read_ref_at() to be usable fro
               +   [jc/show-reflog@{7}] read_ref_at(): allow retrieving the r
                 + [jc/show-reflog@{9}] show-branch --reflog: use updated rea
                 + [jc/show-reflog@{9}^] read_ref_at(): allow reporting the c
                 + [jc/show-reflog@{9}~2] show-branch --reflog: show the refl
                 + [jc/show-reflog@{9}~3] read_ref_at(): allow retrieving the
        ++++++++++ [jc/show-reflog@{8}] dwim_ref(): Separate name-to-ref DWIM
      
      At @{9}, I had a commit to complete 5 patch series, but I wanted
      to consolidate two commits that enhances read_ref_at() into one
      (they were @{9}^ and @{9}~3), and another two that touch show-branch
      into one (@{9} and @{9}~2).
      
      I first saved them with "format-patch -4", and then did a reset
      at @{8}.  At @{7}, I applied one of them with "am", and then
      used "git-apply" on the other one, and amended the commit at
      @{6} (so @{6} and @{7} has the same parent).  I did not like the
      log message, so I amended again at @{5}.
      
      Then I cherry-picked @{9}~2 to create @{3} (the log message
      shows that it needs to learn to set GIT_REFLOG_ACTION -- it uses
      "git-commit" and the log entry is attributed for it).  Another
      cherry-pick built @{2} out of @{9}, but what I wanted to do was
      to squash these two into one, so I did a "reset HEAD^" at @{1}
      and then made the final commit by amending what was at the top.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      76a44c5c
    • U
      rename --exec to --receive-pack for push and send-pack · d23842fd
      Uwe Kleine-König 提交于
      For now it's just to get a more descriptive name.  Later we might update the
      push protocol to run more than one program on the other end.  Moreover this
      matches better the corresponding config option remote.<name>. receivepack.
      
      --exec continues to work
      Signed-off-by: NUwe Kleine-König <zeisberg@informatik.uni-freiburg.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d23842fd
    • U
      make --exec=... option to git-push configurable · 060aafc1
      Uwe Kleine-König 提交于
      Having to specify git push --exec=... is annoying if you cannot have
      git-receivepack in your PATH on the remote side (or don't want to).
      
      This introduces the config item remote.<name>.receivepack to override
      the default value (which is "git-receive-pack").
      Signed-off-by: NUwe Kleine-König <zeisberg@informatik.uni-freiburg.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      060aafc1
    • U
      Update documentation of fetch-pack, push and send-pack · 18bd8821
      Uwe Kleine-König 提交于
      add all supported options to Documentation/git-....txt and the usage strings.
      Signed-off-by: NUwe Kleine-König <zeisberg@informatik.uni-freiburg.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      18bd8821
    • J
      Documentation/git.txt: command re-classification · 89bf2077
      Junio C Hamano 提交于
      This adds two new classes (pure-helpers and "Interacting with
      Others") to the command list in the main manual page.  The
      latter class is primarily about foreign SCM interface and is
      placed before low-level (plumbing) commands.
      
      Also it promotes a handful commands to mainporcelain category
      while demoting some others.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      89bf2077