GitHub PushEvent at 2014-11-29 02:45:59
Repository: git-po
Actor: jiangxin
Payload: {"shas":[["1bb207e0fecb49e35b14b673987cce2884239e04","a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com","tests: drop GIT_*_TIMING_TESTS environment variable support\n\nTwo tests (t3302 and t3419) used to have their own environment\nvariable to trigger expensive tests without enabling expensive\ntests in other scripts; a user could set GIT_NOTES_TIMING_TESTS\nbut not GIT_TEST_LONG and run the whole test suite and trigger\nexpensive tests only in t3302 but not other tests.  The same for\nGIT_PATCHID_TIMING_TESTS in t3419.\n\nWhile this may have seemed a good flexibility, in reality if you are\nconcentrating on a single test (e.g. t3302), you can just run that\nsingle test with the GIT_TEST_LONG to trigger expensive tests.  It\ndoes not seem worth forcing other people who may want to come up\nwith their own expensive tests to invent new environment variables\nby keeping this convention.\n\nDrop them.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Junio C Hamano",false],["aecf567cbfb6ab46e82f7f5df36fb6a2dd5bee69","a13b1135e6f2f8530e85bc2896cd5ed89a6ed863@twopensource.com","cache-tree: create/update cache-tree on checkout\n\nWhen git checkout checks out a branch, create or update the\ncache-tree so that subsequent operations are faster.\n\nupdate_main_cache_tree learned a new flag, WRITE_TREE_REPAIR.  When\nWRITE_TREE_REPAIR is set, portions of the cache-tree which do not\ncorrespond to existing tree objects are invalidated (and portions which\ndo are marked as valid).  No new tree objects are created.\n\nSigned-off-by: David Turner <dturner@twitter.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","David Turner",false],["969dd8c612b3b22c4080ffd4448cef4accbf428b","a13b1135e6f2f8530e85bc2896cd5ed89a6ed863@twopensource.com","test-dump-cache-tree: invalid trees are not errors\n\nDo not treat known-invalid trees as errors even when their subtree_nr is\nincorrect.  Because git already knows that these trees are invalid,\nan incorrect subtree_nr will not cause problems.\n\nAdd a couple of comments.\n\nSigned-off-by: David Turner <dturner@twitter.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","David Turner",false],["59a8adb6fb4ed27868e7144f4531b1bfd065a9c6","a13b1135e6f2f8530e85bc2896cd5ed89a6ed863@twopensource.com","cache-tree: subdirectory tests\n\nAdd tests to confirm that invalidation of subdirectories neither over-\nnor under-invalidates.\n\nSigned-off-by: David Turner <dturner@twitter.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","David Turner",false],["9c4d6c0297b7d6167bf330853139b0515b351b89","a13b1135e6f2f8530e85bc2896cd5ed89a6ed863@twopensource.com","cache-tree: Write updated cache-tree after commit\n\nDuring the commit process, update the cache-tree. Write this updated\ncache-tree so that it's ready for subsequent commands.\n\nAdd test code which demonstrates that git commit now writes the cache\ntree.  Make all tests test the entire cache-tree, not just the root\nlevel.\n\nSigned-off-by: David Turner <dturner@twitter.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","David Turner",false],["93dcaea22674864f931be3fe6050671d335dc5b0","a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com","lockfile: allow reopening a closed but still locked file\n\nIn some code paths (e.g. giving \"add -i\" to prepare the contents to\nbe committed interactively inside \"commit -p\") where a caller takes\na lock, writes the new content, give chance for others to use it\nwhile still holding the lock, and then releases the lock when all is\ndone.  As an extension, allow the caller to re-update an already\nclosed file while still holding the lock (i.e. not yet committed) by\nre-opening the file, to be followed by updating the contents and\nthen by the usual close_lock_file() or commit_lock_file().\n\nThis is necessary if we want to add code to rebuild the cache-tree\nand write the resulting index out after \"add -i\" returns the control\nto \"commit -p\", for example.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Junio C Hamano",false],["f57a8715bc5f50234dd1f756b3b26a0b81c3784c","a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com","test prerequisites: eradicate NOT_FOO\n\nSupport for Back when bdccd3c1 (test-lib: allow negation of\nprerequisites, 2012-11-14) introduced negated predicates\n(e.g. \"!MINGW,!CYGWIN\"), we already had 5 test files that use\nNOT_MINGW (and a few MINGW) as prerequisites.\n\nLet's not add NOT_FOO and rewrite existing ones as !FOO for both\nMINGW and CYGWIN.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Junio C Hamano",false],["b0562224c93aca5addd994e37cd851b7a5de44b8","a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com","test prerequisites: enumerate with commas\n\ntest_have_prereq does understand multiple predicates given as\nseparate arguments, but that is by accident.  We should list the\nprerequisites just like we use them as the (first) optional\nparameter for test_expect_success, concatenated with commas, for\nconsistency.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Junio C Hamano",false],["9830534e40bd15231357965441d4fe02a6a4810e","d4d2cc2a6ec7b2aa587d4887cc5ed200f9b685a1@imag.fr","config --global --edit: create a template file if needed\n\nWhen the user has no ~/.gitconfig file, git config --global --edit used\nto launch an editor on an nonexistant file name.\n\nInstead, create a file with a default content before launching the\neditor. The template contains only commented-out entries, to save a few\nkeystrokes for the user. If the values are guessed properly, the user\nwill only have to uncomment the entries.\n\nAdvanced users teaching newbies can create a minimalistic configuration\nfaster for newbies. Beginners reading a tutorial advising to run \"git\nconfig --global --edit\" as a first step will be slightly more guided for\ntheir first contact with Git.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Matthieu Moy",false],["06b2d87244d74a6b084a08677dfd66d58b94ebfa","d4d2cc2a6ec7b2aa587d4887cc5ed200f9b685a1@imag.fr","home_config_paths(): let the caller ignore xdg path\n\nThe caller can signal that it is not interested in learning\nthe location of $HOME/.gitconfig by passing global=NULL, but\nthere is no way to decline the path to the configuration\nfile based on $XDG_CONFIG_HOME.\n\nAllow the caller to pass xdg=NULL to signal that it is not\ninterested in the XDG location.\n\nCommit-message-by: Junio C Hamano <gitster@pobox.com>\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Matthieu Moy",false],["8b27ff7eacc3bafcb12afcd6bbc99cdb8d718a26","d4d2cc2a6ec7b2aa587d4887cc5ed200f9b685a1@imag.fr","commit: advertise config --global --edit on guessed identity\n\nWhen the user has no user-wide configuration file, it's faster to use the\nnewly introduced config file template than to run two commands to set\nuser.name and user.email. Advise this to the user.\n\nThe old advice is kept if the user already has a configuration file since\nthe template feature would not trigger in this case.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Matthieu Moy",false],["f22a76e9110e8e31efa3781b1a3cf2b4565d9e8a","2da278a99b557fc93ddbed7517a413ad793e2e6a@web.de","strbuf: add strbuf_getcwd()\n\nAdd strbuf_getcwd(), which puts the current working directory into a\nstrbuf.  Because it doesn't use a fixed-size buffer it supports\narbitrarily long paths, provided the platform's getcwd() does as well.\nAt least on Linux and FreeBSD it handles paths longer than PATH_MAX\njust fine.\n\nSuggested-by: Karsten Blees <karsten.blees@gmail.com>\nHelped-by: Duy Nguyen <pclouds@gmail.com>\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","René Scharfe",false],["d13a0a97e097c6a601bafc529a716477cc94dc20","2da278a99b557fc93ddbed7517a413ad793e2e6a@web.de","unix-sockets: use strbuf_getcwd()\n\nInstead of using a PATH_MAX-sized buffer, which can be too small on some\nfile systems, use strbuf_getcwd(), which handles any path getcwd()\nreturns.  Also preserve the errno set by strbuf_getcwd() instead of\nsetting it to ENAMETOOLONG; that way a more appropriate error message\ncan be shown based on the actual reason for failing.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","René Scharfe",false],["2d186c8be5bea10640927e0822bd9e1c7a2e01ea","2da278a99b557fc93ddbed7517a413ad793e2e6a@web.de","init: avoid superfluous real_path() calls\n\nFeeding the result of a real_path() call to real_path() again doesn't\nchange that result -- the returned path won't get any more real.  Avoid\nsuch a double call in set_git_dir_init() and for the same reason stop\ncalling real_path() before feeding paths to set_git_work_tree(), as the\nlatter already takes care of that.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","René Scharfe",false],["3c8687a73eeffc21f5a0b3916d38e46ff985933d","43a0dd602247961f0b6e66a197d8f2daec3be19d@gmail.com","add `config_set` API for caching config-like files\n\nCurrently `git_config()` uses a callback mechanism and file rereads for\nconfig values. Due to this approach, it is not uncommon for the config\nfiles to be parsed several times during the run of a git program, with\ndifferent callbacks picking out different variables useful to themselves.\n\nAdd a `config_set`, that can be used to construct an in-memory cache for\nconfig-like files that the caller specifies (i.e., files like `.gitmodules`,\n`~/.gitconfig` etc.). Add two external functions `git_configset_get_value`\nand `git_configset_get_value_multi` for querying from the config sets.\n`git_configset_get_value` follows `last one wins` semantic (i.e. if there\nare multiple matches for the queried key in the files of the configset the\nvalue returned will be the last entry in `value_list`).\n`git_configset_get_value_multi` returns a list of values sorted in order of\nincreasing priority (i.e. last match will be at the end of the list). Add\ntype specific query functions like `git_configset_get_bool` and similar.\n\nAdd a default `config_set`, `the_config_set` to cache all key-value pairs\nread from usual config files (repo specific .git/config, user wide\n~/.gitconfig, XDG config and the global /etc/gitconfig). `the_config_set`\nis populated using `git_config()`.\n\nAdd two external functions `git_config_get_value` and\n`git_config_get_value_multi` for querying in a non-callback manner from\n`the_config_set`. Also, add type specific query functions that are\nimplemented as a thin wrapper around the `config_set` API.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Tanay Abhra <tanayabh@gmail.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Tanay Abhra",false],["4c715ebb96acc77008e9cbebc381738611c6006f","43a0dd602247961f0b6e66a197d8f2daec3be19d@gmail.com","test-config: add tests for the config_set API\n\nExpose the `config_set` C API as a set of simple commands in order to\nfacilitate testing. Add tests for the `config_set` API as well as for\n`git_config_get_*()` family for the usual config files.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Tanay Abhra <tanayabh@gmail.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Tanay Abhra",false],["d0da003d5b1e65f6e52920e42582f43b357782ee","d189729ad9bf83f8833434c2a6377966e347e012@github.com","use a hashmap to make remotes faster\n\nRemotes are stored as an array, so looking one up or adding one without\nduplication is an O(n) operation.  Reading an entire config file full of\nremotes is O(n^2) in the number of remotes.  For a repository with tens of\nthousands of remotes, the running time can hit multiple minutes.\n\nHash tables are way faster.  So we add a hashmap from remote name to\nstruct remote and use it for all lookups.  The time to add a new remote to\na repo that already has 50,000 remotes drops from ~2 minutes to < 1\nsecond.\n\nWe retain the old array of remotes so iterators proceed in config-file\norder.\n\nSigned-off-by: Patrick Reynolds <patrick.reynolds@github.com>\nReviewed-by: Jeff King <peff@peff.net>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Patrick Reynolds",false],["f07243fe1644552ef88a05cc8bb22c9757639065","348a3c4a81ea6081e50dd1888d577fda55d8e4f6@dotat.at","imap-send: clarify CRAM-MD5 vs LOGIN documentation\n\nExplicitly mention that leaving imap.authMethod unset makes\ngit imap-send use the basic IMAP plaintext LOGIN command.\n\nSigned-off-by: Tony Finch <dot@dotat.at>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Tony Finch",false],["10f343ea814f5c18a0913997904ee11cd9b7da24","738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net","archive: honor tar.umask even for pax headers\n\ngit archive's tar format uses extended pax headers to encode metadata\ninto the archive.  Most tar implementations correctly treat these as\nmetadata, but some that do not understand the pax format extract these\nas files instead.  Apply the tar.umask setting to these entries to\nprevent tampering by other users.\n\nSigned-off-by: brian m. carlson <sandals@crustytoothpaste.net>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","brian m. carlson",false],["a26bc613a64ac2c7ee69a50675e61b004a26382d","43a0dd602247961f0b6e66a197d8f2daec3be19d@gmail.com","pretty.c: make git_pretty_formats_config return -1 on git_config_string failure\n\n`git_pretty_formats_config()` continues without checking git_config_string's\nreturn value which can lead to a SEGFAULT. Instead return -1 when\ngit_config_string fails signalling `git_config()` to die printing the location\nof the erroneous variable.\n\nSigned-off-by: Tanay Abhra <tanayabh@gmail.com>\nReviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>","Tanay Abhra",false]],"size":676,"ref":"refs/heads/maint","head":"ff51f5619d52410e4343c7cd75889e7d07f5659e"}