554f6e4 | Junio C Hamano | 22 December 2015, 22:46:01 UTC | Git 2.7-rc2 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 22 December 2015, 22:46:01 UTC |
de60b97 | Junio C Hamano | 22 December 2015, 22:45:16 UTC | Merge branch 'js/emu-write-epipe-on-windows' The write(2) emulation for Windows learned to set errno to EPIPE when necessary. * js/emu-write-epipe-on-windows: mingw: emulate write(2) that fails with a EPIPE | 22 December 2015, 22:45:16 UTC |
6a4f2ec | Ralf Thielow | 22 December 2015, 17:53:00 UTC | push: don't mark options of recurse-submodules for translation Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 22 December 2015, 22:40:47 UTC |
1d88dab | Junio C Hamano | 21 December 2015, 19:08:20 UTC | Update release notes to 2.7 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 21 December 2015, 19:08:20 UTC |
fbe959d | Junio C Hamano | 21 December 2015, 18:59:07 UTC | Merge branch 'bc/format-patch-null-from-line' "format-patch" has learned a new option to zero-out the commit object name on the mbox "From " line. * bc/format-patch-null-from-line: format-patch: check that header line has expected format format-patch: add an option to suppress commit hash sha1_file.c: introduce a null_oid constant | 21 December 2015, 18:59:08 UTC |
5498c57 | Junio C Hamano | 21 December 2015, 18:59:07 UTC | Merge branch 'jk/ident-loosen-getpwuid' When getpwuid() on the system returned NULL (e.g. the user is not in the /etc/passwd file or other uid-to-name mappings), the codepath to find who the user is to record it in the reflog barfed and died. Loosen the check in this codepath, which already accepts questionable ident string (e.g. host part of the e-mail address is obviously bogus), and in general when we operate fmt_ident() function in non-strict mode. * jk/ident-loosen-getpwuid: ident: loosen getpwuid error in non-strict mode ident: keep a flag for bogus default_email ident: make xgetpwuid_self() a static local helper | 21 December 2015, 18:59:07 UTC |
7aaff08 | Junio C Hamano | 21 December 2015, 18:59:06 UTC | Merge branch 'jk/send-email-ssl-errors' Improve error reporting when SMTP TLS fails. * jk/send-email-ssl-errors: send-email: enable SSL level 1 debug output | 21 December 2015, 18:59:06 UTC |
d78cba4 | Junio C Hamano | 21 December 2015, 18:59:06 UTC | Merge branch 'sg/completion-no-column' The completion script (in contrib/) used to list "git column" (which is not an end-user facing command) as one of the choices * sg/completion-no-column: completion: remove 'git column' from porcelain commands | 21 December 2015, 18:59:06 UTC |
5d35d72 | Junio C Hamano | 21 December 2015, 18:59:05 UTC | Merge branch 'mc/push-recurse-submodules-config' Add new config to avoid typing "--recurse-submodules" on each push. * mc/push-recurse-submodules-config: push: follow the "last one wins" convention for --recurse-submodules push: test that --recurse-submodules on command line overrides config push: add recurseSubmodules config option | 21 December 2015, 18:59:05 UTC |
2b86292 | Johannes Schindelin | 17 December 2015, 17:08:15 UTC | mingw: emulate write(2) that fails with a EPIPE On Windows, when writing to a pipe fails, errno is always EINVAL. However, Git expects it to be EPIPE. According to the documentation, there are two cases in which write() triggers EINVAL: the buffer is NULL, or the length is odd but the mode is 16-bit Unicode (the broken pipe is not mentioned as possible cause). Git never sets the file mode to anything but binary, therefore we know that errno should actually be EPIPE if it is EINVAL and the buffer is not NULL. See https://msdn.microsoft.com/en-us/library/1570wh78.aspx for more details. This works around t5571.11 failing with v2.6.4 on Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 21 December 2015, 16:59:04 UTC |
c3ee2e2 | Junio C Hamano | 21 December 2015, 16:56:16 UTC | Merge git://ozlabs.org/~paulus/gitk * git://ozlabs.org/~paulus/gitk: gitk: sv.po: Update Swedish translation (311t) gitk: Let .bleft.mid widgets 'breathe' gitk: Match ttk fonts to gitk fonts gitk: Update revision date in Japanese PO file gitk: Update "Language:" header gitk: Improve translation message gitk: Remove unused line gitk: Update year gitk: Change last translator line gitk: Update fuzzy messages gitk: Update Japanese translation gitk: Fix translation around copyright sign gitk: Update Japanese translation gitk: Fix wrong translation gitk: Translate Japanese catalog gitk: Translate more to Japanese catalog gitk: Update Japanese message catalog gitk: Re-sync line number in Japanese message catalogue gitk: Color name update | 21 December 2015, 16:56:16 UTC |
0de75aa | Paul Mackerras | 19 December 2015, 02:33:16 UTC | Merge branch 'ja.po' of https://github.com/qykth-git/gitk | 19 December 2015, 02:33:16 UTC |
04d04c0 | Paul Mackerras | 19 December 2015, 02:29:35 UTC | Merge branch 'color-fix' of https://github.com/qykth-git/gitk | 19 December 2015, 02:29:35 UTC |
f3adf45 | Junio C Hamano | 16 December 2015, 22:42:52 UTC | Merge branch 'fr/rebase-i-continue-preserve-options' "git rebase -i" started with merge strategy options did not propagate them upon "git rebase --continue". * fr/rebase-i-continue-preserve-options: rebase -i: remember merge options beyond continue actions | 16 December 2015, 22:42:52 UTC |
787407e | Junio C Hamano | 16 December 2015, 22:40:30 UTC | Merge branch 'maint' * maint: credential-store: don't pass strerror to die_errno() | 16 December 2015, 22:40:30 UTC |
1ff8856 | Junio C Hamano | 16 December 2015, 18:27:22 UTC | Merge branch 'sg/lock-file-commit-error' into maint * sg/lock-file-commit-error: credential-store: don't pass strerror to die_errno() | 16 December 2015, 18:27:22 UTC |
87d01c8 | SZEDER Gábor | 16 December 2015, 11:22:55 UTC | credential-store: don't pass strerror to die_errno() Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 16 December 2015, 18:27:12 UTC |
06dfc9e | brian m. carlson | 15 December 2015, 01:52:05 UTC | format-patch: check that header line has expected format The format of the "From " header line is very specific to allow utilities to detect Git-style patches. Add a test that the patches created are in the expected format. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 15 December 2015, 18:03:56 UTC |
3a30aa1 | brian m. carlson | 15 December 2015, 01:52:04 UTC | format-patch: add an option to suppress commit hash Oftentimes, patches created by git format-patch will be stored in version control or compared with diff. In these cases, two otherwise identical patches can have different commit hashes, leading to diff noise. Teach git format-patch a --zero-commit option that instead produces an all-zero hash to avoid this diff noise. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 15 December 2015, 18:03:40 UTC |
f900c83 | Junio C Hamano | 15 December 2015, 17:47:11 UTC | Git 2.7-rc1 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 15 December 2015, 17:47:11 UTC |
bdb32a8 | Junio C Hamano | 15 December 2015, 17:45:06 UTC | Sync with maint | 15 December 2015, 17:45:16 UTC |
1aaf149 | Junio C Hamano | 15 December 2015, 17:43:01 UTC | Update draft release notes to 2.6.5 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 15 December 2015, 17:44:54 UTC |
a61fd3f | Junio C Hamano | 15 December 2015, 17:42:16 UTC | Merge branch 'dt/fsck-verify-pack-error' into maint The exit code of git-fsck didnot reflect some types of errors found in packed objects, which has been corrected. * dt/fsck-verify-pack-error: verify_pack: do not ignore return value of verification function | 15 December 2015, 17:42:20 UTC |
de301c5 | Junio C Hamano | 15 December 2015, 17:42:01 UTC | Merge branch 'ep/ident-with-getaddrinfo' into maint A fix-up for recent topic. * ep/ident-with-getaddrinfo: ident: fix undefined variable when NO_IPV6 is set ident.c: add support for IPv6 | 15 December 2015, 17:42:01 UTC |
f97f2e5 | Junio C Hamano | 15 December 2015, 17:34:18 UTC | Merge branch 'ls/p4-keep-empty-commits' into maint "git p4" used to import Perforce CLs that touch only paths outside the client spec as empty commits. It has been corrected to ignore them instead, with a new configuration git-p4.keepEmptyCommits as a backward compatibility knob. * ls/p4-keep-empty-commits: git-p4: add option to keep empty commits | 15 December 2015, 17:34:19 UTC |
9c69f77 | Junio C Hamano | 15 December 2015, 17:33:19 UTC | Merge branch 'jk/send-email-complete-aliases' A fix-up for recent topic. * jk/send-email-complete-aliases: completion: fix completing unstuck email alias arguments | 15 December 2015, 17:33:19 UTC |
47be26d | Junio C Hamano | 15 December 2015, 17:33:19 UTC | Merge branch 'ep/ident-with-getaddrinfo' A fix-up for recent topic. * ep/ident-with-getaddrinfo: ident: fix undefined variable when NO_IPV6 is set | 15 December 2015, 17:33:19 UTC |
3b65c24 | Junio C Hamano | 15 December 2015, 17:27:11 UTC | Merge branch 'jk/prune-mtime' into maint The helper used to iterate over loose object directories to prune stale objects did not closedir() immediately when it is done with a directory--a callback such as the one used for "git prune" may want to do rmdir(), but it would fail on open directory on platforms such as WinXP. * jk/prune-mtime: prune: close directory earlier during loose-object directory traversal | 15 December 2015, 17:27:12 UTC |
a899d50 | Junio C Hamano | 15 December 2015, 16:02:18 UTC | Merge branch 'ls/p4-keep-empty-commits' "git p4" used to import Perforce CLs that touch only paths outside the client spec as empty commits. It has been corrected to ignore them instead, with a new configuration git-p4.keepEmptyCommits as a backward compatibility knob. * ls/p4-keep-empty-commits: git-p4: add option to keep empty commits | 15 December 2015, 16:02:19 UTC |
897b185 | Junio C Hamano | 15 December 2015, 16:02:13 UTC | Merge branch 'jk/prune-mtime' The helper used to iterate over loose object directories to prune stale objects did not closedir() immediately when it is done with a directory--a callback such as the one used for "git prune" may want to do rmdir(), but it would fail on open directory on platforms such as WinXP. * jk/prune-mtime: prune: close directory earlier during loose-object directory traversal | 15 December 2015, 16:02:16 UTC |
ccab28a | SZEDER Gábor | 12 December 2015, 00:18:18 UTC | completion: fix completing unstuck email alias arguments Completing unstuck form of email aliases doesn't quite work: $ git send-email --to <TAB> alice bob cecil $ git send-email --to a<TAB> alice bob cecil While listing email aliases works as expected, the second case should just complete to 'alice', but it keeps offering all email aliases instead. The cause for this behavior is that in this case we mistakenly tell __gitcomp() explicitly that the current word to be completed is empty, while in reality it is not. As a result __gitcomp() doesn't filter out non-matching aliases, so all aliases end up being offered over and over again. Fix this by not passing the current word to be completed to __gitcomp() and letting it go the default route and grab it from the '$cur' variable. Don't pass empty prefix either, because it's assumed to be empty when unspecified, so it's not necessary. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 14 December 2015, 22:01:37 UTC |
3e56e72 | brian m. carlson | 06 December 2015, 22:16:35 UTC | sha1_file.c: introduce a null_oid constant null_oid is the struct object_id equivalent to null_sha1. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 14 December 2015, 21:35:54 UTC |
58d29ec | Jeff King | 14 December 2015, 20:52:41 UTC | ident: fix undefined variable when NO_IPV6 is set Commit 00bce77 (ident.c: add support for IPv6, 2015-11-27) moved the "gethostbyname" call out of "add_domainname" and into the helper function "canonical_name". But when moving the code, it forgot that the "buf" variable is passed as "host" in the helper. Reported-by: johan defries <johandefries@gmail.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 14 December 2015, 21:06:00 UTC |
92bcbb9 | Jeff King | 10 December 2015, 21:41:29 UTC | ident: loosen getpwuid error in non-strict mode If the user has not specified an identity and we have to turn to getpwuid() to find the username or gecos field, we die immediately when getpwuid fails (e.g., because the user does not exist). This is OK for making a commit, where we have set IDENT_STRICT and would want to bail on bogus input. But for something like a reflog, where the ident is "best effort", it can be pain. For instance, even running "git clone" with a UID that is not in /etc/passwd will result in git barfing, just because we can't find an ident to put in the reflog. Instead of dying in xgetpwuid_self, we can instead return a fallback value, and set a "bogus" flag. For the username in an email, we already have a "default_email_is_bogus" flag. For the name field, we introduce (and check) a matching "default_name_is_bogus" flag. As a bonus, this means you now get the usual "tell me who you are" advice instead of just a "no such user" error. No tests, as this is dependent on configuration outside of git's control. However, I did confirm that it behaves sensibly when I delete myself from the local /etc/passwd (reflogs get written, and commits complain). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 14 December 2015, 19:44:38 UTC |
4f7214b | Peter Krefting | 11 December 2015, 08:49:21 UTC | gitk: sv.po: Update Swedish translation (311t) Signed-off-by: Peter Krefting <peter@softwolves.pp.se> Signed-off-by: Paul Mackerras <paulus@samba.org> | 12 December 2015, 02:48:20 UTC |
cae4b60 | Giuseppe Bilotta | 08 December 2015, 07:05:51 UTC | gitk: Let .bleft.mid widgets 'breathe' The widgets on top of the diff window are very tightly packed. Make them breathe a little by adding an 'i'-spaced padding between them. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org> | 12 December 2015, 02:43:53 UTC |
6cb73c8 | Giuseppe Bilotta | 08 December 2015, 07:05:50 UTC | gitk: Match ttk fonts to gitk fonts The fonts set in setoptions aren't consistently picked up by ttk, which uses its own predefined fonts. This is noticeable when switching between using and not using ttk with custom fonts or in HiDPI settings (where the default TTK fonts do _not_ respect tk sclaing). Fix by mapping the ttk fontset to the one used by gitk internally. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org> | 12 December 2015, 02:43:52 UTC |
040fd39 | Fabian Ruch | 11 December 2015, 20:30:36 UTC | rebase -i: remember merge options beyond continue actions If the user explicitly specified a merge strategy or strategy options, continue to use that strategy/option after "rebase --continue". Add a test of the corrected behavior. If --merge is specified or implied by -s or -X, then "strategy and "strategy_opts" are set to values from which "strategy_args" can be derived; otherwise they are set to empty strings. Either way, their values are propagated from one step of an interactive rebase to the next via state files. "do_merge", on the other hand, is *not* propagated to later steps of an interactive rebase. Therefore, making the initialization of "strategy_args" conditional on "do_merge" being set prevents later steps of an interactive rebase from setting it correctly. Luckily, we don't need the "do_merge" guard at all. If the rebase was started without --merge, then "strategy" and "strategy_opts" are both the empty string, which results in "strategy_args" also being set to the empty string, which is just what we want in that situation. So remove the "do_merge" guard and derive "strategy_args" from "strategy" and "strategy_opts" every time. Reported-by: Diogo de Campos <campos@esss.com.br> Signed-off-by: Fabian Ruch <bafain@gmail.com> Helped-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 11 December 2015, 20:44:44 UTC |
160fcdb | SZEDER Gábor | 11 December 2015, 12:05:00 UTC | completion: remove 'git column' from porcelain commands 'git column' is an internal helper, so it should not be offered on 'git <TAB>' along with porcelain commands. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 11 December 2015, 20:43:16 UTC |
4b9ab0e | Junio C Hamano | 11 December 2015, 18:45:44 UTC | Update release notes to 2.7 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 11 December 2015, 19:20:23 UTC |
52b2e6b | Junio C Hamano | 11 December 2015, 19:19:43 UTC | Merge branch 'maint' * maint: Prepare for 2.6.5 | 11 December 2015, 19:19:43 UTC |
49e863b | Junio C Hamano | 11 December 2015, 19:17:47 UTC | Prepare for 2.6.5 This back-merges hopefully the last batch of trivially correct fixes to the 2.6.x maintenance track from the master branch. Signed-off-by: Junio C Hamano <gitster@pobox.com> | 11 December 2015, 19:17:47 UTC |
58e3dd2 | Junio C Hamano | 11 December 2015, 19:14:38 UTC | Merge branch 'sn/null-pointer-arith-in-mark-tree-uninteresting' into maint mark_tree_uninteresting() has code to handle the case where it gets passed a NULL pointer in its 'tree' parameter, but the function had 'object = &tree->object' assignment before checking if tree is NULL. This gives a compiler an excuse to declare that tree will never be NULL and apply a wrong optimization. Avoid it. * sn/null-pointer-arith-in-mark-tree-uninteresting: revision.c: fix possible null pointer arithmetic | 11 December 2015, 19:14:38 UTC |
abca668 | Junio C Hamano | 11 December 2015, 19:14:18 UTC | Merge branch 'sg/lock-file-commit-error' into maint Cosmetic improvement to lock-file error messages. * sg/lock-file-commit-error: Make error message after failing commit_lock_file() less confusing | 11 December 2015, 19:14:18 UTC |
7605881 | Junio C Hamano | 11 December 2015, 19:14:18 UTC | Merge branch 'cb/t3404-shellquote' into maint * cb/t3404-shellquote: t3404: fix quoting of redirect for some versions of bash | 11 December 2015, 19:14:18 UTC |
17e5bca | Junio C Hamano | 11 December 2015, 19:14:17 UTC | Merge branch 'sb/doc-submodule-sync-recursive' into maint * sb/doc-submodule-sync-recursive: document submodule sync --recursive | 11 December 2015, 19:14:17 UTC |
63b3db7 | Junio C Hamano | 11 December 2015, 19:14:15 UTC | Merge branch 'nd/doc-check-ref-format-typo' into maint * nd/doc-check-ref-format-typo: git-check-ref-format.txt: typo, s/avoids/avoid/ | 11 December 2015, 19:14:15 UTC |
288fe0c | Junio C Hamano | 11 December 2015, 19:14:13 UTC | Merge branch 'rs/show-branch-argv-array' into maint Code simplification. * rs/show-branch-argv-array: show-branch: use argv_array for default arguments | 11 December 2015, 19:14:14 UTC |
0af22d6 | Junio C Hamano | 11 December 2015, 19:14:12 UTC | Merge branch 'rs/pop-commit' into maint Code simplification. * rs/pop-commit: use pop_commit() for consuming the first entry of a struct commit_list | 11 December 2015, 19:14:13 UTC |
8c0a546 | Junio C Hamano | 11 December 2015, 19:14:11 UTC | Merge branch 'as/subtree-with-spaces' into maint Update "git subtree" (in contrib/) so that it can take whitespaces in the pathnames, not only in the in-tree pathname but the name of the directory that the repository is in. * as/subtree-with-spaces: contrib/subtree: respect spaces in a repository path t7900-subtree: test the "space in a subdirectory name" case | 11 December 2015, 19:14:11 UTC |
4cb5488 | Junio C Hamano | 11 December 2015, 19:14:09 UTC | Merge branch 'jk/test-lint-forbid-when-finished-in-subshell' into maint Because "test_when_finished" in our test framework queues the clean-up tasks to be done in a shell variable, it should not be used inside a subshell. Add a mechanism to allow 'bash' to catch such uses, and fix the ones that were found. * jk/test-lint-forbid-when-finished-in-subshell: test-lib-functions: detect test_when_finished in subshell t7800: don't use test_config in a subshell test-lib-functions: support "test_config -C <dir> ..." t5801: don't use test_when_finished in a subshell t7610: don't use test_config in a subshell | 11 December 2015, 19:14:10 UTC |
782ca8c | Junio C Hamano | 11 December 2015, 18:41:01 UTC | Merge branch 'sn/null-pointer-arith-in-mark-tree-uninteresting' mark_tree_uninteresting() has code to handle the case where it gets passed a NULL pointer in its 'tree' parameter, but the function had 'object = &tree->object' assignment before checking if tree is NULL. This gives a compiler an excuse to declare that tree will never be NULL and apply a wrong optimization. Avoid it. * sn/null-pointer-arith-in-mark-tree-uninteresting: revision.c: fix possible null pointer arithmetic | 11 December 2015, 18:41:01 UTC |
fa41b05 | Junio C Hamano | 11 December 2015, 18:40:59 UTC | Merge branch 'sb/doc-submodule-sync-recursive' * sb/doc-submodule-sync-recursive: document submodule sync --recursive | 11 December 2015, 18:41:00 UTC |
c87eec9 | Junio C Hamano | 11 December 2015, 18:40:57 UTC | Merge branch 'cb/t3404-shellquote' * cb/t3404-shellquote: t3404: fix quoting of redirect for some versions of bash | 11 December 2015, 18:40:58 UTC |
e0048d3 | Junio C Hamano | 11 December 2015, 18:40:54 UTC | Merge branch 'sg/lock-file-commit-error' Cosmetic improvement to lock-file error messages. * sg/lock-file-commit-error: Make error message after failing commit_lock_file() less confusing | 11 December 2015, 18:40:55 UTC |
9d60524 | John Keeping | 03 December 2015, 21:47:18 UTC | send-email: enable SSL level 1 debug output If a server's certificate isn't accepted by send-email, the output is: Unable to initialize SMTP properly. Check config and use --smtp-debug. but adding --smtp-debug=1 just produces the same output since we don't get as far as talking SMTP. Turning on SSL debug at level 1 gives: DEBUG: .../IO/Socket/SSL.pm:1796: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed DEBUG: .../IO/Socket/SSL.pm:673: fatal SSL error: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed DEBUG: .../IO/Socket/SSL.pm:1780: IO::Socket::IP configuration failed IO::Socket::SSL defines level 1 debug as "print out errors from IO::Socket::SSL and ciphers from Net::SSLeay". In fact, it aliases Net::SSLeay::trace which is defined to guarantee silence at level 0 and only emit error messages at level 1, so let's enable it by default. The modification of warnings is needed to avoid a warning about: Name "IO::Socket::SSL::DEBUG" used only once: possible typo Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 11 December 2015, 17:41:10 UTC |
19ce497 | Jeff King | 10 December 2015, 21:35:36 UTC | ident: keep a flag for bogus default_email If we have to deduce the user's email address and can't come up with something plausible for the hostname, we simply write "(none)" or ".(none)" in the hostname. Later, our strict-check is forced to use strstr to look for this magic string. This is probably not a problem in practice, but it's rather ugly. Let's keep an extra flag that tells us the email is bogus, and check that instead. We could get away with simply setting the global in add_domainname(); it only gets called to write into git_default_email. However, let's make the code a little more obvious to future readers by actually passing a pointer to our "bogus" flag down the call-chain. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 23:39:25 UTC |
e850194 | Jeff King | 10 December 2015, 21:33:05 UTC | ident: make xgetpwuid_self() a static local helper This function is defined in wrapper.c, but nobody besides ident.c uses it. And nobody is likely to in the future, either, as anything that cares about the user's name should be going through the ident code. Moving it here is a cleanup of the global namespace, but it will also enable further cleanups inside ident.c. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 23:38:59 UTC |
7d72253 | Junio C Hamano | 10 December 2015, 20:59:37 UTC | Git 2.7-rc0 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 20:59:37 UTC |
39e07f7 | Junio C Hamano | 10 December 2015, 20:45:17 UTC | Sync with maint * maint: Documentation/git-update-index: add missing opts to synopsis | 10 December 2015, 20:45:17 UTC |
86c95ac | Junio C Hamano | 10 December 2015, 20:43:52 UTC | Update release notes to 2.7 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 20:43:52 UTC |
56d63d0 | Junio C Hamano | 10 December 2015, 20:36:15 UTC | Merge branch 'nd/doc-check-ref-format-typo' * nd/doc-check-ref-format-typo: git-check-ref-format.txt: typo, s/avoids/avoid/ | 10 December 2015, 20:36:15 UTC |
844a9ce | Junio C Hamano | 10 December 2015, 20:36:13 UTC | Merge branch 'bc/object-id' More transition from "unsigned char[40]" to "struct object_id". This needed a few merge fixups, but is mostly disentangled from other topics. * bc/object-id: remote: convert functions to struct object_id Remove get_object_hash. Convert struct object to object_id Add several uses of get_object_hash. object: introduce get_object_hash macro. ref_newer: convert to use struct object_id push_refs_with_export: convert to struct object_id get_remote_heads: convert to struct object_id parse_fetch: convert to use struct object_id add_sought_entry_mem: convert to struct object_id Convert struct ref to use object_id. sha1_file: introduce has_object_file helper. | 10 December 2015, 20:36:13 UTC |
b12a966 | Junio C Hamano | 10 December 2015, 20:36:12 UTC | Merge branch 'dt/fsck-verify-pack-error' The exit code of git-fsck didnot reflect some types of errors found in packed objects, which has been corrected. * dt/fsck-verify-pack-error: verify_pack: do not ignore return value of verification function | 10 December 2015, 20:36:12 UTC |
9eb2449 | Junio C Hamano | 10 December 2015, 20:36:12 UTC | Merge branch 'ls/travis-yaml' The necessary infrastructure to build topics using the free Travis CI has been added. Developers forking from this topic (and enabling Travis) can do their own builds, and we can turn on auto-builds for git/git (including build-status for pull requests that people open). * ls/travis-yaml: Add Travis CI support | 10 December 2015, 20:36:12 UTC |
bc49712 | Christian Couder | 25 November 2015, 09:30:02 UTC | Documentation/git-update-index: add missing opts to synopsis Split index related options should appear in the 'SYNOPSIS' section. These options are already documented in the 'OPTIONS' section. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 20:21:26 UTC |
4ae048e | Lars Schneider | 08 December 2015, 09:36:22 UTC | git-p4: add option to keep empty commits A changelist that contains only excluded files due to a client spec was imported as an empty commit. Fix that issue by ignoring these commits. Add option "git-p4.keepEmptyCommits" to make the previous behavior available. Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Helped-by: Pete Harlan Acked-by: Luke Diamand <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 10 December 2015, 18:45:02 UTC |
545299f | Junio C Hamano | 08 December 2015, 22:14:50 UTC | Merge branch 'ep/ident-with-getaddrinfo' A build without NO_IPv6 used to use gethostbyname() when guessing user's hostname, instead of getaddrinfo() that is used in other codepaths in such a build. * ep/ident-with-getaddrinfo: ident.c: add support for IPv6 | 08 December 2015, 22:14:50 UTC |
2b597f3 | Junio C Hamano | 08 December 2015, 22:14:49 UTC | Merge branch 'ls/test-must-fail-sigpipe' Fix some racy client/server tests by treating SIGPIPE the same as a normal non-zero exit. * ls/test-must-fail-sigpipe: add "ok=sigpipe" to test_must_fail and use it to fix flaky tests implement test_might_fail using a refactored test_must_fail | 08 December 2015, 22:14:49 UTC |
b1cda70 | Junio C Hamano | 08 December 2015, 22:14:49 UTC | Merge branch 'dt/refs-backend-pre-vtable' Code preparation for pluggable ref backends. * dt/refs-backend-pre-vtable: refs: break out ref conflict checks files_log_ref_write: new function initdb: make safe_create_dir public refs: split filesystem-based refs code into a new file refs/refs-internal.h: new header file refname_is_safe(): improve docstring pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref() copy_msg(): rename to copy_reflog_msg() verify_refname_available(): new function verify_refname_available(): rename function | 08 December 2015, 22:14:49 UTC |
fa5f239 | Junio C Hamano | 08 December 2015, 22:13:52 UTC | Sync with 2.6.4 | 08 December 2015, 22:13:52 UTC |
bdfc6b3 | Junio C Hamano | 08 December 2015, 22:07:30 UTC | Git 2.6.4 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 08 December 2015, 22:12:45 UTC |
4d0069f | Junio C Hamano | 08 December 2015, 22:11:32 UTC | Merge branch 'rs/status-detached-head-memcmp' into maint Fix some string-matching corner cases when digging in the reflog for "git status". * rs/status-detached-head-memcmp: wt-status: correct and simplify check for detached HEAD | 08 December 2015, 22:11:32 UTC |
b5d2d8e | Junio C Hamano | 08 December 2015, 22:05:03 UTC | Merge branch 'ad/sha1-update-chunked' into maint Apple's common crypto implementation of SHA1_Update() does not take more than 4GB at a time, and we now have a compile-time workaround for it. * ad/sha1-update-chunked: sha1: allow limiting the size of the data passed to SHA1_Update() sha1: provide another level of indirection for the SHA-1 functions | 08 December 2015, 22:05:03 UTC |
e6ed5a4 | Junio C Hamano | 08 December 2015, 22:05:02 UTC | Merge branch 'sg/bash-prompt-dirty-orphan' into maint Produce correct "dirty" marker for shell prompts, even when we are on an orphan or an unborn branch. * sg/bash-prompt-dirty-orphan: bash prompt: indicate dirty index even on orphan branches bash prompt: remove a redundant 'git diff' option bash prompt: test dirty index and worktree while on an orphan branch | 08 December 2015, 22:05:02 UTC |
22386ad | Junio C Hamano | 08 December 2015, 22:05:02 UTC | Merge branch 'jk/interpret-trailers-outside-a-repository' into maint Allow "git interpret-trailers" to run outside of a Git repository. * jk/interpret-trailers-outside-a-repository: interpret-trailers: allow running outside a repository | 08 December 2015, 22:05:02 UTC |
697bd28 | Junio C Hamano | 08 December 2015, 22:05:00 UTC | Merge branch 'jk/rebase-no-autostash' into maint There was no way to defeat a configured rebase.autostash variable from the command line, as "git rebase --no-autostash" was missing. * jk/rebase-no-autostash: Documentation/git-rebase: fix --no-autostash formatting rebase: support --no-autostash | 08 December 2015, 22:05:01 UTC |
a2678df | Stefan Naewe | 05 December 2015, 15:27:24 UTC | revision.c: fix possible null pointer arithmetic mark_tree_uninteresting() dereferences a tree pointer before checking if the pointer is valid. Fix that by doing the check first. Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 07 December 2015, 20:32:02 UTC |
7966230 | Charles Bailey | 02 December 2015, 20:50:07 UTC | t3404: fix quoting of redirect for some versions of bash As CodingGuidelines says, some versions of bash errors out when $variable substitution is used as the target for redirection without being quoted (even though POSIX may not require such a quote). Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 22:05:18 UTC |
56a8aea | Nguyễn Thái Ngọc Duy | 04 December 2015, 18:09:32 UTC | git-check-ref-format.txt: typo, s/avoids/avoid/ Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 21:09:48 UTC |
e7220c4 | Stefan Beller | 03 December 2015, 20:41:02 UTC | document submodule sync --recursive The git-submodule(1) is inconsistent. In the synopsis, it says: git submodule [--quiet] sync [--recursive] [--] [<path>...] The description of the sync does not mention --recursive, and the description of --recursive says that it is only available for foreach, update and status. The option was introduced (82f49f294c, Teach --recursive to submodule sync, 2012-10-26) a while ago, so let's document it, too. Reported-by: Per Cederqvist <cederp@opera.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 21:08:05 UTC |
d34141c | Mike Crowe | 03 December 2015, 13:10:35 UTC | push: follow the "last one wins" convention for --recurse-submodules Use the "last one wins" convention for --recurse-submodules rather than treating conflicting options as an error. Also, fix the declaration of the file-scope recurse_submodules global variable to put it on a separate line. Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 21:04:04 UTC |
f5c7cd9 | Mike Crowe | 03 December 2015, 13:10:34 UTC | push: test that --recurse-submodules on command line overrides config t5531 only checked that the push.recurseSubmodules config option was overridden by passing --recurse-submodules=check on the command line. Add new tests for overriding with --recurse-submodules=no, --no-recurse-submodules and --recurse-submodules=push too. Also correct minor typo in test commit message. Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 21:03:23 UTC |
e5da865 | Junio C Hamano | 04 December 2015, 19:39:56 UTC | Sync with maint * maint: Prepare for 2.6.4 | 04 December 2015, 19:39:56 UTC |
9a8c740 | Junio C Hamano | 04 December 2015, 19:39:19 UTC | Prepare for 2.6.4 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 19:39:19 UTC |
aa0b4c3 | Junio C Hamano | 04 December 2015, 19:34:24 UTC | Merge branch 'da/difftool' into maint The code to prepare the working tree side of temporary directory for the "dir-diff" feature forgot that symbolic links need not be copied (or symlinked) to the temporary area, as the code already special cases and overwrites them. Besides, it was wrong to try computing the object name of the target of symbolic link, which may not even exist or may be a directory. * da/difftool: difftool: ignore symbolic links in use_wt_file | 04 December 2015, 19:34:24 UTC |
b50ceab | Junio C Hamano | 04 December 2015, 19:33:07 UTC | Merge branch 'dk/gc-idx-wo-pack' into maint Having a leftover .idx file without corresponding .pack file in the repository hurts performance; "git gc" learned to prune them. We may want to do the same for .bitmap (and notice but not prune .keep) without corresponding .pack, but that can be a separate topic. * dk/gc-idx-wo-pack: gc: remove garbage .idx files from pack dir t5304: test cleaning pack garbage prepare_packed_git(): refactor garbage reporting in pack directory | 04 December 2015, 19:33:08 UTC |
9ed86a5 | Junio C Hamano | 04 December 2015, 19:31:28 UTC | RelNotes update for 2.7 Signed-off-by: Junio C Hamano <gitster@pobox.com> | 04 December 2015, 19:31:28 UTC |
80c17ca | Junio C Hamano | 04 December 2015, 19:19:12 UTC | Merge branch 'sg/bash-prompt-dirty-orphan' Produce correct "dirty" marker for shell prompts, even when we are on an orphan or an unborn branch. * sg/bash-prompt-dirty-orphan: bash prompt: indicate dirty index even on orphan branches bash prompt: remove a redundant 'git diff' option bash prompt: test dirty index and worktree while on an orphan branch | 04 December 2015, 19:19:12 UTC |
3a5b6ee | Junio C Hamano | 04 December 2015, 19:19:11 UTC | Merge branch 'np/credential-cache-sighup' Workaround for using credential-cache with emacs. * np/credential-cache-sighup: credential-cache: new option to ignore sighup | 04 December 2015, 19:19:11 UTC |
2d80807 | Junio C Hamano | 04 December 2015, 19:19:11 UTC | Merge branch 'rs/parseopt-short-help' Make "-h" command line option work more consistently in all commands. * rs/parseopt-short-help: show-ref: stop using PARSE_OPT_NO_INTERNAL_HELP grep: stop using PARSE_OPT_NO_INTERNAL_HELP parse-options: allow -h as a short option parse-options: inline parse_options_usage() at its only remaining caller parse-options: deduplicate parse_options_usage() calls | 04 December 2015, 19:19:11 UTC |
c69d08d | Junio C Hamano | 04 December 2015, 19:19:10 UTC | Merge branch 'jk/send-email-complete-aliases' Teach send-email to dump mail aliases, so that we can do tab completion on the command line. * jk/send-email-complete-aliases: completion: add support for completing email aliases sendemail: teach git-send-email to dump alias names | 04 December 2015, 19:19:11 UTC |
2e5adec | Junio C Hamano | 04 December 2015, 19:19:10 UTC | Merge branch 'jk/filter-branch-no-index' Speed up filter-branch for cases where we only care about rewriting commits, not tree data. * jk/filter-branch-no-index: filter-branch: skip index read/write when possible | 04 December 2015, 19:19:10 UTC |
4672123 | Junio C Hamano | 04 December 2015, 19:19:09 UTC | Merge branch 'ad/sha1-update-chunked' Apple's common crypto implementation of SHA1_Update() does not take more than 4GB at a time, and we now have a compile-time workaround for it. * ad/sha1-update-chunked: sha1: allow limiting the size of the data passed to SHA1_Update() sha1: provide another level of indirection for the SHA-1 functions | 04 December 2015, 19:19:10 UTC |
fd13a2e | Jeff King | 01 December 2015, 23:54:58 UTC | Merge branch 'mk/blame-first-parent' Regression fix for a topic already in master. * mk/blame-first-parent: blame: fix object casting regression | 01 December 2015, 23:54:58 UTC |
43ed382 | Jeff King | 01 December 2015, 23:54:54 UTC | Merge branch 'jk/send-email-ca-path' Use a safer behavior when we hit errors verifying remote certificates. * jk/send-email-ca-path: send-email: die if CA path doesn't exist | 01 December 2015, 23:54:54 UTC |
e2187fe | Jeff King | 01 December 2015, 23:54:47 UTC | Merge branch 'rs/fsck-nul-header' Fsck did not correctly detect a NUL-truncated header in a tag. * rs/fsck-nul-header: fsck: treat a NUL in a tag header as an error t1450: add tests for NUL in headers of commits and tags | 01 December 2015, 23:54:47 UTC |
fa7095e | Jeff King | 01 December 2015, 23:54:40 UTC | Merge branch 'ls/p4-test-timeouts' Work around some test flakiness with p4d. * ls/p4-test-timeouts: git-p4: add trap to kill p4d on test exit git-p4: add p4d timeout in tests git-p4: retry kill/cleanup operations in tests with timeout | 01 December 2015, 23:54:40 UTC |
e0dd81b | Jeff King | 01 December 2015, 23:54:37 UTC | Merge branch 'js/test-modernize-t9300' Clean up style in an ancient test. * js/test-modernize-t9300: modernize t9300: move test preparations into test_expect_success modernize t9300: mark here-doc words to ignore tab indentation modernize t9300: use test_when_finished for clean-up modernize t9300: wrap lines after && modernize t9300: use test_must_be_empty modernize t9300: use test_must_fail modernize t9300: single-quote placement and indentation | 01 December 2015, 23:54:37 UTC |
d0e8377 | Jeff King | 01 December 2015, 23:54:34 UTC | Merge branch 'jk/send-email-expand-paths' Expand paths in some send-email config variables. * jk/send-email-expand-paths: send-email: expand path in sendemail.smtpsslcertpath config | 01 December 2015, 23:54:34 UTC |