1. 29 11月, 2005 1 次提交
  2. 19 10月, 2005 1 次提交
  3. 15 10月, 2005 1 次提交
  4. 12 10月, 2005 1 次提交
    • L
      Use git config file for committer name and email info · e1b10391
      Linus Torvalds 提交于
      This starts using the "user.name" and "user.email" config variables if
      they exist as the default name and email when committing.  This means
      that you don't have to use the GIT_COMMITTER_EMAIL environment variable
      to override your email - you can just edit the config file instead.
      
      The patch looks bigger than it is because it makes the default name and
      email information non-static and renames it appropriately.  And it moves
      the common git environment variables into a new library file, so that
      you can link against libgit.a and get the git environment without having
      to link in zlib and libcrypt.
      
      In short, most of it is renaming and moving, the real change core is
      just a few new lines in "git_default_config()" that copies the user
      config values to the new base.
      
      It also changes "git-var -l" to list the config variables.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e1b10391
  5. 30 7月, 2005 1 次提交
  6. 16 7月, 2005 1 次提交
  7. 13 7月, 2005 1 次提交
  8. 20 6月, 2005 1 次提交
    • L
      git-commit-tree: ignore duplicate parents · b389237a
      Linus Torvalds 提交于
      But warn about them.  If somebody really ends up later wanting to
      explicitly add a note that something has the same parent twice (who
      knows, there are strange people around), we can add a flag to say that
      it's expected and ok.
      
      This was brought on by a commit in the kernel tree, where a repeated
      merge caused a duplicate parent.
      
      Parent duplicates aren't "wrong" per se, they're just in practice not
      something you are ever interested in.
      b389237a
  9. 27 5月, 2005 1 次提交
  10. 25 5月, 2005 1 次提交
  11. 23 5月, 2005 1 次提交
    • L
      Include file cleanups.. · 6b0c3121
      Linus Torvalds 提交于
      Add <limits.h> to the include files handled by "cache.h", and remove
      extraneous #include directives from various .c files. The rule is that
      "cache.h" gets all the basic stuff, so that we'll have as few system
      dependencies as possible.
      6b0c3121
  12. 20 5月, 2005 1 次提交
  13. 10 5月, 2005 1 次提交
    • J
      Rename environment variables. · d19938ab
      Junio C Hamano 提交于
      H. Peter Anvin mentioned that using SHA1_whatever as an
      environment variable name is not nice and we should instead use
      names starting with "GIT_" prefix to avoid conflicts.  Here is
      what this patch does:
      
       * Renames the following environment variables:
      
          New name                           Old Name
      
          GIT_AUTHOR_DATE                    AUTHOR_DATE
          GIT_AUTHOR_EMAIL                   AUTHOR_EMAIL
          GIT_AUTHOR_NAME                    AUTHOR_NAME
          GIT_COMMITTER_EMAIL                COMMIT_AUTHOR_EMAIL
          GIT_COMMITTER_NAME                 COMMIT_AUTHOR_NAME
          GIT_ALTERNATE_OBJECT_DIRECTORIES   SHA1_FILE_DIRECTORIES
          GIT_OBJECT_DIRECTORY               SHA1_FILE_DIRECTORY
      
       * Introduces a compatibility macro, gitenv(), which does an
         getenv() and if it fails calls gitenv_bc(), which in turn
         picks up the value from old name while giving a warning about
         using an old name.
      
       * Changes all users of the environment variable to fetch
         environment variable with the new name using gitenv().
      
       * Updates the documentation and scripts shipped with Linus GIT
         distribution.
      
      The transition plan is as follows:
      
       * We will keep the backward compatibility list used by gitenv()
         for now, so the current scripts and user environments
         continue to work as before.  The users will get warnings when
         they have old name but not new name in their environment to
         the stderr.
      
       * The Porcelain layers should start using new names.  However,
         just in case it ends up calling old Plumbing layer
         implementation, they should also export old names, taking
         values from the corresponding new names, during the
         transition period.
      
       * After a transition period, we would drop the compatibility
         support and drop gitenv().  Revert the callers to directly
         call getenv() but keep using the new names.
      
         The last part is probably optional and the transition
         duration needs to be set to a reasonable value.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d19938ab
  14. 02 5月, 2005 1 次提交
    • L
      Add "get_sha1()" helper function. · 3c249c95
      Linus Torvalds 提交于
      This allows the programs to use various simplified versions of
      the SHA1 names, eg just say "HEAD" for the SHA1 pointed to by
      the .git/HEAD file etc.
      
      For example, this commit has been done with
      
      	git-commit-tree $(git-write-tree) -p HEAD
      
      instead of the traditional "$(cat .git/HEAD)" syntax.
      3c249c95
  15. 01 5月, 2005 1 次提交
    • E
      [PATCH] Do date parsing by hand... · ecee9d9e
      Edgar Toernig 提交于
      ...since everything out there is either strange (libc mktime has issues
      with timezones) or introduces unnecessary dependencies for people (libcurl).
      
      This goes back to the old date parsing, but moves it out into a file of
      its own, and does the "struct tm" to "seconds since epoch" handling by
      hand. 
      
      I grepped through the tz-database and it seems there's one "country"
      left that has non-60-minute DST: Lord Howe Island.  All others dropped
      that before 1970. 
      ecee9d9e
  16. 30 4月, 2005 1 次提交
  17. 27 4月, 2005 1 次提交
  18. 26 4月, 2005 1 次提交
  19. 21 4月, 2005 1 次提交
    • J
      [PATCH] Usage-string fixes. · c5bac17a
      Junio C Hamano 提交于
      Usage string fixes to make maintenance easier (only one instance
      of a string to update not multiple copies).  I've spotted and
      corrected inconsistent usage text in diff-tree while doing this.
      
      Also diff-cache and read-tree usage text have been corrected to
      match their up-to-date features.  Earlier, neither "--cached"
      form of diff-cache nor "-m single-merge" form of read-tree were
      described. 
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c5bac17a
  20. 20 4月, 2005 1 次提交
  21. 19 4月, 2005 1 次提交
    • G
      [PATCH] provide better committer information to commit-tree.c · b70070f0
      Greg KH 提交于
      Here's a small patch to commit-tree.c that does two things:
      	- allows the committer email address and name to be overridden
      	  by environment variables (if you don't like the environment
      	  variable names I've used (COMMIT_AUTHOR_NAME,
      	  COMMIT_AUTHOR_EMAIL), feel free to change them.)
      	- provide the proper domainname to the author/committer email
      	  address (otherwise, my address was only showing up as from the
      	  hostname.)
      
      This allows people to set sane values for the commit names and email
      addresses, preventing odd, private hostnames and domains from being
      exposed to the world.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b70070f0
  22. 18 4月, 2005 3 次提交
  23. 15 4月, 2005 1 次提交
    • D
      [PATCH] Simplify date handling and make it more reliable · 27de946d
      David Woodhouse 提交于
      This make all dates be stores as seconds since UTC epoch, with the
      author's or committer's timezone as auxiliary data so that dates can be
      pretty-printed in the original timezone later if anyone cares.  I left
      the date parsing in rev-tree.c for backward compatibility but it can be
      dropped when we change to base64 :)
      
      commit-tree now eats RFC2822 dates as AUTHOR_DATE because that's
      what you're going to want to feed it.
      
      Yes, glibc sucks and strptime is a pile of crap. We have to parse it
      ourselves.
      27de946d
  24. 13 4月, 2005 2 次提交
  25. 11 4月, 2005 1 次提交
    • L
      Fix up commit-tree/diff-tree user interface issues. · bf16c71e
      Linus Torvalds 提交于
      No, this doesn't make them easy to use, but makes diff-tree use
      the "-r" flag for "recursive" (not "-R") and makes commit-tree
      use AUTHOR_xxx environment flags (not COMMITTER_xxx) to match what
      it actually does.
      bf16c71e
  26. 10 4月, 2005 1 次提交
  27. 08 4月, 2005 2 次提交