1. 10 2月, 2011 2 次提交
  2. 19 1月, 2011 2 次提交
  3. 02 12月, 2010 3 次提交
  4. 25 11月, 2010 1 次提交
    • J
      fast-import: treat SIGUSR1 as a request to access objects early · dc01f59d
      Jonathan Nieder 提交于
      It can be tedious to wait for a multi-million-revision import.
      Unfortunately it is hard to spy on the import because fast-import
      works by continuously streaming out objects, without updating the pack
      index or refs until a checkpoint command or the end of the stream.
      
      So allow the impatient operator to request checkpoints by sending a
      signal, like so:
      
      	killall -USR1 git-fast-import
      
      When receiving such a signal, fast-import would schedule a checkpoint
      to take place after the current top-level command (usually a "commit"
      or "blob" request) finishes.
      
      Caveats: just like ordinary checkpoint commands, such requests slow
      down the import.  Switching to a new pack at a suboptimal moment is
      also likely to result in a less dense initial collection of packs.
      That's the price.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dc01f59d
  5. 14 10月, 2010 2 次提交
  6. 06 7月, 2010 2 次提交
  7. 18 2月, 2010 1 次提交
    • N
      fast-import: make default pack size unlimited · 89e0a3a1
      Nicolas Pitre 提交于
      Now that fast-import is creating packs with index version 2, there is
      no point limiting the pack size by default.  A pack split will still
      happen if off_t is not sufficiently large to hold large offsets.
      
      While updating the doc, let's remove the "packfiles fit on CDs"
      suggestion.  Pack files created by fast-import are still suboptimal and
      a 'git repack -a -f -d' or even 'git gc --aggressive' would be a pretty
      good idea before considering storage on CDs.
      Signed-off-by: NNicolas Pitre <nico@fluxnic.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      89e0a3a1
  8. 05 2月, 2010 1 次提交
  9. 02 2月, 2010 1 次提交
  10. 01 2月, 2010 1 次提交
  11. 10 1月, 2010 1 次提交
    • T
      Documentation: spell 'git cmd' without dash throughout · 0b444cdb
      Thomas Rast 提交于
      The documentation was quite inconsistent when spelling 'git cmd' if it
      only refers to the program, not to some specific invocation syntax:
      both 'git-cmd' and 'git cmd' spellings exist.
      
      The current trend goes towards dashless forms, and there is precedent
      in 647ac702 (git-svn.txt: stop using dash-form of commands.,
      2009-07-07) to actively eliminate the dashed variants.
      
      Replace 'git-cmd' with 'git cmd' throughout, except where git-shell,
      git-cvsserver, git-upload-pack, git-receive-pack, and
      git-upload-archive are concerned, because those really live in the
      $PATH.
      0b444cdb
  12. 01 1月, 2010 1 次提交
  13. 06 12月, 2009 1 次提交
    • S
      fast-import: add (non-)relative-marks feature · bc3c79ae
      Sverre Rabbelier 提交于
      After specifying 'feature relative-marks' the paths specified with
      'feature import-marks' and 'feature export-marks' are relative to an
      internal directory in the current repository.
      
      In git-fast-import this means that the paths are relative to the
      '.git/info/fast-import' directory. However, other importers may use a
      different location.
      
      Add 'feature non-relative-marks' to disable this behavior, this way
      it is possible to, for example, specify the import-marks location as
      relative, and the export-marks location as non-relative.
      
      Also add tests to verify this behavior.
      
      Cc: Daniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NSverre Rabbelier <srabbelier@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bc3c79ae
  14. 05 12月, 2009 3 次提交
  15. 20 10月, 2009 1 次提交
  16. 20 7月, 2008 1 次提交
    • A
      Support gitlinks in fast-import. · 03db4525
      Alexander Gavrilov 提交于
      Currently fast-import/export cannot be used for
      repositories with submodules. This patch extends
      the relevant programs to make them correctly
      process gitlinks.
      
      Links can be represented by two forms of the
      Modify command:
      
      M 160000 SHA1 some/path
      
      which sets the link target explicitly, or
      
      M 160000 :mark some/path
      
      where the mark refers to a commit. The latter
      form can be used by importing tools to build
      all submodules simultaneously in one physical
      repository, and then simply fetch them apart.
      Signed-off-by: NAlexander Gavrilov <angavrilov@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      03db4525
  17. 06 7月, 2008 2 次提交
  18. 02 7月, 2008 2 次提交
    • J
      Documentation formatting and cleanup · 483bc4f0
      Jonathan Nieder 提交于
      Following what appears to be the predominant style, format
      names of commands and commandlines both as `teletype text`.
      
      While we're at it, add articles ("a" and "the") in some
      places, italicize the name of the command in the manual page
      synopsis line, and add a comma or two where it seems appropriate.
      Signed-off-by: NJonathan Nieder <jrnieder@uchicago.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      483bc4f0
    • J
      Documentation: be consistent about "git-" versus "git " · b1889c36
      Jonathan Nieder 提交于
      Since the git-* commands are not installed in $(bindir), using
      "git-command <parameters>" in examples in the documentation is
      not a good idea. On the other hand, it is nice to be able to
      refer to each command using one hyphenated word. (There is no
      escaping it, anyway: man page names cannot have spaces in them.)
      
      This patch retains the dash in naming an operation, command,
      program, process, or action. Complete command lines that can
      be entered at a shell (i.e., without options omitted) are
      made to use the dashless form.
      
      The changes consist only of replacing some spaces with hyphens
      and vice versa. After a "s/ /-/g", the unpatched and patched
      versions are identical.
      Signed-off-by: NJonathan Nieder <jrnieder@uchicago.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b1889c36
  19. 07 6月, 2008 1 次提交
  20. 23 3月, 2008 1 次提交
  21. 16 2月, 2008 1 次提交
  22. 07 1月, 2008 1 次提交
    • D
      Documentation: rename gitlink macro to linkgit · 5162e697
      Dan McGee 提交于
      Between AsciiDoc 8.2.2 and 8.2.3, the following change was made to the stock
      Asciidoc configuration:
      
      @@ -149,7 +153,10 @@
       # Inline macros.
       # Backslash prefix required for escape processing.
       # (?s) re flag for line spanning.
      -(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
      +# Explicit so they can be nested.
      +(?su)[\\]?(?P<name>(http|https|ftp|file|mailto|callto|image|link)):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
       # Anchor: [[[id]]]. Bibliographic anchor.
       (?su)[\\]?\[\[\[(?P<attrlist>[\w][\w-]*?)\]\]\]=anchor3
       # Anchor: [[id,xreflabel]]
      
      This default regex now matches explicit values, and unfortunately in this
      case gitlink was being matched by just 'link', causing the wrong inline
      macro template to be applied. By renaming the macro, we can avoid being
      matched by the wrong regex.
      Signed-off-by: NDan McGee <dpmcgee@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5162e697
  23. 25 8月, 2007 1 次提交
  24. 19 8月, 2007 4 次提交
    • S
      Allow frontends to bidirectionally communicate with fast-import · ac053c02
      Shawn O. Pearce 提交于
      The existing checkpoint command is very useful to force fast-import
      to dump the branches out to disk so that standard Git tools can
      access them and the objects they refer to.  However there was not a
      way to know when fast-import had finished executing the checkpoint
      and it was safe to read those refs.
      
      The progress command can be used to make fast-import output any
      message of the frontend's choosing to standard out.  The frontend
      can scan for these messages using select() or poll() to monitor a
      pipe connected to the standard output of fast-import.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      ac053c02
    • S
      Make trailing LF optional for all fast-import commands · 1fdb649c
      Shawn O. Pearce 提交于
      For the same reasons as the prior change we want to allow frontends
      to omit the trailing LF that usually delimits commands.  In some
      cases these just make the input stream more verbose looking than
      it needs to be, and its just simpler for the frontend developer to
      get started if our parser is slightly more lenient about where an
      LF is required and where it isn't.
      
      To make this optional LF feature work we now have to buffer up to one
      line of input in command_buf.  This buffering can happen if we look
      at the current input command but don't recognize it at this point
      in the code.  In such a case we need to "unget" the entire line,
      but we cannot depend upon the stdio library to let us do ungetc()
      for that many characters at once.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      1fdb649c
    • S
      Make trailing LF following fast-import `data` commands optional · 2c570cde
      Shawn O. Pearce 提交于
      A few fast-import frontend developers have found it odd that we
      require the LF following a `data` command, especially in the exact
      byte count format.  Technically we don't need this LF to parse
      the stream properly, but having it here does make the stream more
      readable to humans.  We can easily make the LF optional by peeking
      at the next byte available from the stream and pushing it back into
      the buffer if its not LF.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      2c570cde
    • S
      Teach fast-import to ignore lines starting with '#' · 401d53fa
      Shawn O. Pearce 提交于
      Several frontend developers have asked that some form of stream
      comments be permitted within a fast-import data stream.  This way
      they can include information from their own frontend program about
      where specific data was taken from in the source system, or about
      a decision that their frontend may have made while creating the
      fast-import data stream.
      
      This change introduces comments in the Bourne-shell/Tcl/Perl style.
      Lines starting with '#' are ignored, up to and including the LF.
      Unlike the above mentioned three languages however we do not look for
      and ignore leading whitespace.  This just simplifies the definition
      of the comment format and the code that parses them.
      
      To make comments work we had to stop using read_next_command() within
      cmd_data() and directly invoke read_line() during the inline variant
      of the function.  This is necessary to retain any lines of the
      input data that might otherwise look like a comment to fast-import.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      401d53fa
  25. 15 7月, 2007 1 次提交
    • S
      Teach fast-import to recursively copy files/directories · b6f3481b
      Shawn O. Pearce 提交于
      Some source material (e.g. Subversion dump files) perform directory
      renames by telling us the directory was copied, then deleted in the
      same revision.  This makes it difficult for a frontend to convert
      such data formats to a fast-import stream, as all the frontend has
      on hand is "Copy a/ to b/; Delete a/" with no details about what
      files are in a/, unless the frontend also kept track of all files.
      
      The new 'C' subcommand within a commit allows the frontend to make a
      recursive copy of one path to another path within the branch, without
      needing to keep track of the individual file paths.  The metadata
      copy is performed in memory efficiently, but is implemented as a
      copy-immediately operation, rather than copy-on-write.
      
      With this new 'C' subcommand frontends could obviously implement an
      'R' (rename) on their own as a combination of 'C' and 'D' (delete),
      but since we have already offered up 'R' in the past and it is a
      trivial thing to keep implemented I'm not going to deprecate it.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      b6f3481b
  26. 10 7月, 2007 2 次提交
    • S
      Correct trivial typo in fast-import documentation · c7bd5502
      Shawn O. Pearce 提交于
      Rogan Dawes noticed I meant `filerename` here and not `filename`.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      c7bd5502
    • S
      Support wholesale directory renames in fast-import · f39a946a
      Shawn O. Pearce 提交于
      Some source material (e.g. Subversion dump files) perform directory
      renames without telling us exactly which files in that subdirectory
      were moved.  This makes it hard for a frontend to convert such data
      formats to a fast-import stream, as all the frontend has on hand
      is "Rename a/ to b/" with no details about what files are in a/,
      unless the frontend also kept track of all files.
      
      The new 'R' subcommand within a commit allows the frontend to
      rename either a file or an entire subdirectory, without needing to
      know the object's SHA-1 or the specific files contained within it.
      The rename is performed as efficiently as possible internally,
      making it cheaper than a 'D'/'M' pair for a file rename.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      f39a946a