git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What's cooking in git.git (Dec 2015, #03; Thu, 10)
@ 2015-12-10 22:46 Junio C Hamano
  2015-12-10 23:25 ` Stefan Beller
  2015-12-11  0:18 ` John Keeping
  0 siblings, 2 replies; 13+ messages in thread
From: Junio C Hamano @ 2015-12-10 22:46 UTC (permalink / raw)
  To: git

Here are the topics that have been cooking.  Commits prefixed with
'-' are only in 'pu' (proposed updates) while commits prefixed with
'+' are in 'next'.  The ones marked with '.' do not appear in any of
the integration branches, but I am still holding onto them.

An early preview v2.7.0-rc0 has been tagged.  I notice that quite a
few topics have been in "waiting for review" state without getting
anybody helping the review process, leaving them in 'pu'--they will
not have enough time to be part of 2.7 at this rate, but perhaps
that is unavoidable, as this is historically a slow season.

You can find the changes described here in the integration branches of the
repositories listed at

    http://git-blame.blogspot.com/p/git-public-repositories.html

--------------------------------------------------
[Graduated to "master"]

* bc/object-id (2015-11-20) 12 commits
  (merged to 'next' on 2015-12-04 at 2d3f5f2)
 + 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.
 (this branch is used by bc/format-patch-null-from-line.)

 More transition from "unsigned char[40]" to "struct object_id".

 This needed a few merge fixups, but is mostly disentangled from other
 topics.


* dt/fsck-verify-pack-error (2015-12-01) 1 commit
  (merged to 'next' on 2015-12-04 at fbd82d1)
 + verify_pack: do not ignore return value of verification function

 The exit code of git-fsck didnot reflect some types of errors found
 in packed objects, which has been corrected.


* dt/refs-backend-pre-vtable (2015-11-20) 10 commits
  (merged to 'next' on 2015-11-24 at 8fd7293)
 + 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
 (this branch is used by dt/refs-backend-lmdb.)

 Code preparation for pluggable ref backends.


* ep/ident-with-getaddrinfo (2015-11-28) 1 commit
  (merged to 'next' on 2015-12-01 at 0775d4c)
 + ident.c: add support for IPv6

 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.


* ls/test-must-fail-sigpipe (2015-11-28) 2 commits
  (merged to 'next' on 2015-12-01 at d374686)
 + add "ok=sigpipe" to test_must_fail and use it to fix flaky tests
 + implement test_might_fail using a refactored test_must_fail

 Fix some racy client/server tests by treating SIGPIPE the same as a
 normal non-zero exit.


* ls/travis-yaml (2015-11-28) 1 commit
  (merged to 'next' on 2015-12-04 at e7852e1)
 + Add Travis CI support

 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).


* nd/doc-check-ref-format-typo (2015-12-04) 1 commit
  (merged to 'next' on 2015-12-08 at 1ec8a6b)
 + git-check-ref-format.txt: typo, s/avoids/avoid/


* rs/status-detached-head-memcmp (2015-11-28) 1 commit
  (merged to 'next' on 2015-12-04 at 60232db)
 + wt-status: correct and simplify check for detached HEAD

 Fix some string-matching corner cases when digging in the reflog for
 "git status".

--------------------------------------------------
[New Topics]

* bc/format-patch-null-from-line (2015-12-07) 2 commits
 - format-patch: add an option to suppress commit hash
 - Introduce a null_oid constant.

 "format-patch" has learned a new option to zero-out the commit
 object name on the mbox "From " line.

 The bottom patch needs to be retitled but otherwise OK.  The top
 one names the new option --no-hash that is doubly undesirable.

 Waiting for a reroll.
 ($gmane/282111)


* sn/null-pointer-arith-in-mark-tree-uninteresting (2015-12-07) 1 commit
  (merged to 'next' on 2015-12-08 at 91b14e2)
 + revision.c: fix possible null pointer arithmetic

 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.

 Will merge to 'master'.


* dt/refs-backend-lmdb (2015-12-04) 16 commits
 - refs: tests for lmdb backend
 - refs: add LMDB refs backend
 - refs: allow ref backend to be set for clone
 - init: allow alternate backends to be set for new repos
 - refs: always handle non-normal refs in files backend
 - refs: move duplicate check to common code
 - refs: make lock generic
 - refs: add method to rename refs
 - refs: add methods to init refs backend and db
 - refs: add method for delete_refs
 - refs: add method for initial ref transaction commit
 - refs: add methods for reflog
 - refs: add do_for_each_per_worktree_ref
 - refs: add methods for the ref iterators
 - refs: add methods for misc ref operations
 - refs: add a backend method structure with transaction functions

 Building on top of a few refs-backend preparatory series, LMDB
 based refs backend has been plugged into the system.

 Waiting for review.


* dw/subtree-split-do-not-drop-merge (2015-12-10) 1 commit
 - contrib/subtree: fix "subtree split" skipped-merge bug

 The "split" subcommand of "git subtree" (in contrib/) incorrectly
 skipped merges when it shouldn't, which was corrected.

 Waiting for review from 'subtree' folks.


* ls/p4-keep-empty-commits (2015-12-10) 1 commit
 - git-p4: add option to 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.

 Will merge to 'next'.

--------------------------------------------------
[Stalled]

* vl/grep-configurable-threads (2015-12-04) 1 commit
 . grep: add --threads=<num> option and grep.threads configuration

 "git grep" can now be configured (or told from the command line)
 how many threads to use when searching in the working tree files.

 There was some review from Eric.  Also this seems to break a test.

 Waiting for a reroll, or at least a response.
 ($gmane/281160)


* kf/http-proxy-auth-methods (2015-11-04) 3 commits
 . SQUASH???
 . http: use credential API to handle proxy authentication
 . http: allow selection of proxy authentication method

 New http.proxyAuthMethod configuration variable can be used to
 specify what authentication method to use, as a way to work around
 proxies that do not give error response expected by libcurl when
 CURLAUTH_ANY is used.  Also, the codepath for proxy authentication
 has been taught to use credential API to store the authentication
 material in user's keyrings.

 I ejected this from pu for the moment, as it conflicts with the
 pt/http-socks-proxy topic. That is now in master, so it can
 be re-rolled on top.

 Still being worked on.
 ($gmane/280925)


* nd/ita-cleanup (2015-09-06) 6 commits
 - grep: make it clear i-t-a entries are ignored
 - checkout(-index): do not checkout i-t-a entries
 - apply: make sure check_preimage() does not leave empty file on error
 - apply: fix adding new files on i-t-a entries
 - add and use a convenience macro ce_intent_to_add()
 - blame: remove obsolete comment

 Paths that have been told the index about with "add -N" are not yet
 in the index, but various commands behaved as if they already are.

 Some commits need better explanation.

 Waiting for a reroll.


* mg/httpd-tests-update-for-apache-2.4 (2015-04-08) 2 commits
 - t/lib-git-svn: check same httpd module dirs as lib-httpd
 - t/lib-httpd: load mod_unixd

 This is the first two commits in a three-patch series $gmane/266962

 Becoming tired of waiting for a reroll.
 with updated log message ($gmane/268061).


* wp/sha1-name-negative-match (2015-06-08) 2 commits
 - sha1_name.c: introduce '^{/!-<negative pattern>}' notation
 - test for '!' handling in rev-parse's named commits

 Introduce "branch^{/!-<pattern>}" notation to name a commit
 reachable from branch that does not match the given pattern.

 Becoming tired of waiting for a reroll.
 ($gmane/271213).


* ak/format-patch-odir-config (2015-06-19) 1 commit
 - format-patch: introduce format.outputDirectory configuration

 Reroll exists but didn't pick it up as it seemed to be still
 collecting review comments.

 Becoming tired of waiting for a reroll.
 ($gmane/272180).


* jc/diff-b-m (2015-02-23) 5 commits
 . WIPWIP
 . WIP: diff-b-m
 - diffcore-rename: allow easier debugging
 - diffcore-rename.c: add locate_rename_src()
 - diffcore-break: allow debugging

 "git diff -B -M" produced incorrect patch when the postimage of a
 completely rewritten file is similar to the preimage of a removed
 file; such a resulting file must not be expressed as a rename from
 other place.

 The fix in this patch is broken, unfortunately.

--------------------------------------------------
[Cooking]

* cb/t3404-shellquote (2015-12-04) 1 commit
  (merged to 'next' on 2015-12-08 at 1a01305)
 + t3404: fix quoting of redirect for some versions of bash

 Will merge to 'master'.


* nd/clear-gitenv-upon-use-of-alias (2015-12-07) 3 commits
 . git.c: make sure we do not leak GIT_* to alias scripts
 - setup.c: re-fix d95138e (setup: set env $GIT_WORK_TREE when ..
 - git.c: make it clear save_env() is for alias handling only

 d95138e6 (setup: set env $GIT_WORK_TREE when work tree is set, like
 $GIT_DIR, 2015-06-26) attempted to work around a glitch in alias
 handling by overwriting GIT_WORK_TREE environment variable to
 affect subprocesses when set_git_work_tree() gets called, which
 resulted in a rather unpleasant regression to "clone" and "init".
 Try to address the same issue by always restoring the environment
 and respawning the real underlying command when handling alias.

 The tip one seems to break tests under "prove".

 Waiting for review.


* sb/doc-submodule-sync-recursive (2015-12-04) 1 commit
  (merged to 'next' on 2015-12-08 at 7c24ee5)
 + document submodule sync --recursive

 Will merge to 'master'.


* kn/ref-filter-atom-parsing (2015-12-01) 10 commits
 - ref-filter: introduce objectname_atom_parser()
 - ref-filter: introduce contents_atom_parser()
 - ref-filter: introduce remote_ref_atom_parser()
 - ref-filter: introduce align_atom_parser()
 - strbuf: introduce strbuf_split_str_without_term()
 - ref-filter: introduce color_atom_parser()
 - ref-filter: skip deref specifier in match_atom_name()
 - ref-fitler: bump match_atom() name to the top
 - ref-filter: introduce struct used_atom
 - ref-filter: introduce a parsing function for each atom in valid_atom

 Refactoring of ref-filter's format-parsing code, in preparation
 for "branch --format" and friends.

 This replaces (for now) kn/for-each-ref-remainder, which will be built
 on top.

 Waiting for review.


* sg/lock-file-commit-error (2015-12-01) 1 commit
  (merged to 'next' on 2015-12-08 at ef53cd6)
 + Make error message after failing commit_lock_file() less confusing

 Cosmetic improvement to lock-file error messages.

 Will merge to 'master'.


* bb/merge-marker-crlf (2015-11-24) 1 commit
 - merge-file: consider core.crlf when writing merge markers

 Write out merge markers using system end-of-line convention.

 Waiting for a re-roll to handle gitattributes.
 ($gmane/281701)


* dk/gc-more-wo-pack (2015-11-24) 3 commits
 - gc: Clean garbage .bitmap files from pack dir
 - t5304: Add test for .bitmap garbage files
 - prepare_packed_git(): find more garbage

 Follow-on to dk/gc-idx-wo-pack topic, to clean up stale
 .bitmap and .keep files.

 Waiting for review.


* jk/send-email-ssl-errors (2015-11-24) 1 commit
 - send-email: enable SSL level 1 debug output

 Improve error reporting when SMTP TLS fails.

 Waiting for a reroll.
 ($gmane/281693)


* ps/rebase-keep-empty (2015-11-24) 2 commits
 - rebase: fix preserving commits with --keep-empty
 - rebase: test broken behavior with --keep-empty

 Keep duplicate commits via rebase --keep-empty.

 I'm not sure if I agree with this interpretation of the "rebase
 --keep-empty" documentation, but I haven't thought too hard about it.
 Comments welcome.

 Waiting for review.


* rm/subtree-unwrap-tags (2015-11-24) 1 commit
 - contrib/subtree: unwrap tag refs

 Waiting for review from subtree folks.


* sg/sh-require-clean-orphan (2015-11-24) 2 commits
 - sh-setup: make require_clean_work_tree() work on orphan branches
 - Add tests for git-sh-setup's require_clean_work_tree()

 Allow users of git-sh-setup to handle orphan branch state.

 This series takes the conservative route of requiring scripts to opt
 into the looser behavior, at the expense of carrying around a new
 option-flag forever. I'm not sure if we need to do so. Comments
 welcome.


* tb/ls-files-eol (2015-11-28) 2 commits
 - convert.c: mark a file-local function static
 - ls-files: Add eol diagnostics

 Add options to ls-files to help diagnose end-of-line problems.

 This latest round hasn't gotten any review yet.

 Waiting for review.


* ec/annotate-deleted (2015-11-20) 1 commit
 - annotate: skip checking working tree if a revision is provided

 Usability fix for annotate-specific "<file> <rev>" syntax with deleted
 files.

 Waiting for review.


* mc/push-recurse-submodules-config (2015-12-04) 3 commits
  (merged to 'next' on 2015-12-08 at 1b81967)
 + push: follow the "last one wins" convention for --recurse-submodules
 + push: test that --recurse-submodules on command line overrides config
  (merged to 'next' on 2015-11-24 at 3644d4b)
 + push: add recurseSubmodules config option

 Add new config to avoid typing "--recurse-submodules" on each push.

 Waiting for review from submodule folks.


* sb/submodule-parallel-update (2015-11-20) 27 commits
 - clone: allow an explicit argument for parallel submodule clones
 - submodule update: expose parallelism to the user
 - git submodule update: have a dedicated helper for cloning
 - fetching submodules: respect `submodule.jobs` config option
 - submodule-config: introduce parse_generic_submodule_config
 - submodule-config: remove name_and_item_from_var
 - submodule-config: drop check against NULL
 - submodule-config: keep update strategy around
 - run_processes_parallel: delimit intermixed task output
 - Merge branch 'rs/daemon-plug-child-leak' into sb/submodule-parallel-update
 - Merge branch 'sb/submodule-parallel-fetch' into sb/submodule-parallel-update
  (merged to 'next' on 2015-11-20 at 89fc723)
 + strbuf: update documentation for strbuf_read_once()
 + run-command: remove set_nonblocking()
  (merged to 'next' on 2015-10-23 at 8f04bbd)
 + run-command: fix missing output from late callbacks
 + test-run-command: increase test coverage
 + test-run-command: test for gracefully aborting
 + run-command: initialize the shutdown flag
 + run-command: clear leftover state from child_process structure
 + run-command: fix early shutdown
  (merged to 'next' on 2015-10-15 at df63590)
 + submodules: allow parallel fetching, add tests and documentation
 + fetch_populated_submodules: use new parallel job processing
 + run-command: add an asynchronous parallel child processor
 + sigchain: add command to pop all common signals
 + strbuf: add strbuf_read_once to read without blocking
 + xread_nonblock: add functionality to read from fds without blocking
 + xread: poll on non blocking fds
 + submodule.c: write "Fetching submodule <foo>" to stderr
 (this branch is tangled with sb/submodule-parallel-fetch.)

 Builds on top of the "fetch --recurse-submodules" work to introduce
 parallel downloading into multiple submodules for "submodule update".

 Waiting for sb/submodule-parallel-fetch to stabilize.

 It would be the cleanest to rebuild sb/submodule-parallel-fetch on
 top of 2.7.0 once it ships and then build this directly on top;
 that way, we do not have to have merges in this topic that
 distracting (besides, some part of the other topic can be updated
 in-place instead of this follow-up topic tweaking them as past
 mistakes and inflexibilities).

 I picked up v4 from the list, but it needs review.


* jc/strbuf-gets (2015-10-28) 17 commits
 - test-sha1-array: read command stream with strbuf_gets()
 - grep: read -f file with strbuf_gets()
 - send-pack: read list of refs with strbuf_gets()
 - column: read lines with strbuf_gets()
 - cat-file: read batch stream with strbuf_gets()
 - transport-helper: read helper response with strbuf_gets()
 - clone/sha1_file: read info/alternates with strbuf_gets()
 - remote.c: read $GIT_DIR/remotes/* with strbuf_gets()
 - ident.c: read /etc/mailname with strbuf_gets()
 - rev-parse: read parseopt spec with strbuf_gets()
 - revision: read --stdin with strbuf_gets()
 - hash-object: read --stdin-paths with strbuf_gets()
 - mktree: read textual tree representation with strbuf_gets()
 - update-index: read list of paths with strbuf_gets() under --stdin
 - update-index: read --index-info with strbuf_gets()
 - check-attr, check-ignore, checkout-index: read paths with strbuf_gets()
 - strbuf: add strbuf_gets()

 Teach codepaths that communicate with users by reading text files
 to be more lenient to editors that write CRLF-terminated lines.
 Note that this is only about communication with Git, like feeding
 list of object names from the standard input instead of from the
 command line, and does not involve files in the working tree.

 Waiting for review.


* mh/notes-allow-reading-treeish (2015-10-08) 3 commits
  (merged to 'next' on 2015-10-23 at 8a697f0)
 + notes: allow treeish expressions as notes ref
 + Merge branch 'jk/notes-dwim-doc' into next
 + Merge branch 'jc/merge-drop-old-syntax' into next
 (this branch uses jc/merge-drop-old-syntax.)

 Some "git notes" operations, e.g. "git log --notes=<note>", should
 be able to read notes from any tree-ish that is shaped like a notes
 tree, but the notes infrastructure required that the argument must
 be a ref under refs/notes/.  Loosen it to require a valid ref only
 when the operation would update the notes (in which case we must
 have a place to store the updated notes tree, iow, a ref).

 As the patch was done on top of the 'drop old-syntax from merge',
 this has to wait until that other topic can graduate, unfortunately.
 It can be redone in a way that does not depend on that topic after
 this cycle, though.

 Will keep in 'next'.


* jc/mailinfo (2015-10-21) 1 commit
 - mailinfo: ignore in-body header that we do not care about

 Some people write arbitrary garbage at the beginning of a piece of
 e-mail (or after -- >8 -- scissors -- >8 -- line) in the commit log
 message and expect them to be discarded, even though "From:" and
 "Subject:" are the only documented in-body headers that you are
 supposed to have there.  Allow some garbage (specifically, what may
 look like RFC2822 headers like "MIME-Version: ...") to be there and
 ignore them.

 I have a feeling that that this is a step in a wrong direction.
 Comments?


* js/am-3-merge-recursive-direct (2015-10-12) 2 commits
  (merged to 'next' on 2015-10-23 at dc631e5)
 + am: make a direct call to merge_recursive
 + merge_recursive_options: introduce the "gently" flag

 The merge_recursive_generic() function has been made a bit safer to
 call from inside a process.  "git am -3" was taught to make a direct
 call to the function when falling back to three-way merge.

 Being able to make a direct call would be good in general, but as a
 performance thing, we would want to see it backed up by numbers.

 I haven't gone through the "gently" change with fine toothed comb;
 I can see that the change avoids calling die(), but I haven't made
 sure that the program states (e.g. what's in the in-core index) are
 adjusted sensibly when it returns to the caller instead of dying,
 or the codepaths that used to die() are free of resource leaks.
 The original code certainly did not care the program states at the
 point of dying exactly because it knew it is going to exit, but now
 they have to care, and they need to be audited.

 Will keep in 'next'.


* sg/pretty-more-date-mode-format (2015-10-07) 1 commit
 - pretty: add format specifiers for short and raw date formats

 Introduce "%as" and "%aR" placeholders for "log --format" to show
 the author date in the short and raw formats.

 I have a feeling that that this is a step in a wrong direction.
 Comments?


* kn/for-each-branch-remainder (2015-10-02) 9 commits
 . branch: implement '--format' option
 . branch: use ref-filter printing APIs
 . ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams
 . ref-filter: introduce format_ref_array_item()
 . ref-filter: adopt get_head_description() from branch.c
 . ref-filter: modify "%(objectname:short)" to take length
 . ref-filter: add support for %(path) atom
 . ref-filter: implement %(if:equals=<string>) and %(if:notequals=<string>)
 . ref-filter: implement %(if), %(then), and %(else) atoms

 More unification among "branch -l", "tag -l" and "for-each-ref --format".

 Ejected from pu for now, as a re-roll should come on top of
 kn/ref-filter-atom-parsing.

 Expecting a reroll.
 ($gmane/278926)


* jk/graph-format-padding (2015-09-14) 1 commit
 - pretty: pass graph width to pretty formatting for use in '%>|(N)'

 Redefine the way '%>|(N)' padding and the "--graph" option
 interacts.  It has been that the available columns to display the
 log message was measured from the edge of the area the graph ended,
 but with this it becomes the beginning of the entire output.

 I have a suspicion that 50% of the users would appreciate this
 change, and the remainder see this break their expectation.  If
 that is the case, we might need to introduce a similar but
 different alignment operator so that this new behaviour is
 available to those who want to use it, without negatively affecting
 existing uses.

 Undecided.
 ($gmane/278326)


* sb/submodule-parallel-fetch (2015-11-24) 17 commits
  (merged to 'next' on 2015-12-04 at 2c5ea47)
 + run-command: detect finished children by closed pipe rather than waitpid
  (merged to 'next' on 2015-11-20 at 89fc723)
 + strbuf: update documentation for strbuf_read_once()
 + run-command: remove set_nonblocking()
  (merged to 'next' on 2015-10-23 at 8f04bbd)
 + run-command: fix missing output from late callbacks
 + test-run-command: increase test coverage
 + test-run-command: test for gracefully aborting
 + run-command: initialize the shutdown flag
 + run-command: clear leftover state from child_process structure
 + run-command: fix early shutdown
  (merged to 'next' on 2015-10-15 at df63590)
 + submodules: allow parallel fetching, add tests and documentation
 + fetch_populated_submodules: use new parallel job processing
 + run-command: add an asynchronous parallel child processor
 + sigchain: add command to pop all common signals
 + strbuf: add strbuf_read_once to read without blocking
 + xread_nonblock: add functionality to read from fds without blocking
 + xread: poll on non blocking fds
 + submodule.c: write "Fetching submodule <foo>" to stderr
 (this branch is tangled with sb/submodule-parallel-update.)

 Add a framework to spawn a group of processes in parallel, and use
 it to run "git fetch --recurse-submodules" in parallel.

 Waiting for review.


* ad/cygwin-wants-rename (2015-08-07) 1 commit
 - config.mak.uname: Cygwin needs OBJECT_CREATION_USES_RENAMES

 Will hold.
 ($gmane/275680).


* jc/rerere-multi (2015-09-14) 7 commits
 - rerere: do use multiple variants
 - t4200: rerere a merge with two identical conflicts
 - rerere: allow multiple variants to exist
 - rerere: delay the recording of preimage
 - rerere: handle leftover rr-cache/$ID directory and postimage files
 - rerere: scan $GIT_DIR/rr-cache/$ID when instantiating a rerere_id
 - rerere: split conflict ID further

 "git rerere" can encounter two or more files with the same conflict
 signature that have to be resolved in different ways, but there was
 no way to record these separate resolutions.


* jc/merge-drop-old-syntax (2015-04-29) 1 commit
  (merged to 'next' on 2015-10-07 at 50fed71)
 + merge: drop 'git merge <message> HEAD <commit>' syntax
 (this branch is used by mh/notes-allow-reading-treeish.)

 Originally merged to 'next' on 2015-05-28

 Stop supporting "git merge <message> HEAD <commit>" syntax that has
 been deprecated since October 2007.  It has been reported that
 git-gui still uses the deprecated syntax, which needs to be fixed
 before this final step can proceed.

 Will keep in 'next'.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 22:46 What's cooking in git.git (Dec 2015, #03; Thu, 10) Junio C Hamano
@ 2015-12-10 23:25 ` Stefan Beller
  2015-12-10 23:33   ` Junio C Hamano
  2015-12-10 23:51   ` Junio C Hamano
  2015-12-11  0:18 ` John Keeping
  1 sibling, 2 replies; 13+ messages in thread
From: Stefan Beller @ 2015-12-10 23:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Thu, Dec 10, 2015 at 2:46 PM, Junio C Hamano <gitster@pobox.com> wrote:
>
> * sb/submodule-parallel-update (2015-11-20) 27 commits
...
>
>  Waiting for sb/submodule-parallel-fetch to stabilize.
>
>  It would be the cleanest to rebuild sb/submodule-parallel-fetch on
>  top of 2.7.0 once it ships and then build this directly on top;
>  that way, we do not have to have merges in this topic that
>  distracting (besides, some part of the other topic can be updated
>  in-place instead of this follow-up topic tweaking them as past
>  mistakes and inflexibilities).
>
>  I picked up v4 from the list, but it needs review.




>
> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>   (merged to 'next' on 2015-12-04 at 2c5ea47)
>  + run-command: detect finished children by closed pipe rather than waitpid
>   (merged to 'next' on 2015-11-20 at 89fc723)
>  + strbuf: update documentation for strbuf_read_once()
>  + run-command: remove set_nonblocking()
>   (merged to 'next' on 2015-10-23 at 8f04bbd)
>  + run-command: fix missing output from late callbacks
>  + test-run-command: increase test coverage
>  + test-run-command: test for gracefully aborting
>  + run-command: initialize the shutdown flag
>  + run-command: clear leftover state from child_process structure
>  + run-command: fix early shutdown
>   (merged to 'next' on 2015-10-15 at df63590)
>  + submodules: allow parallel fetching, add tests and documentation
>  + fetch_populated_submodules: use new parallel job processing
>  + run-command: add an asynchronous parallel child processor
>  + sigchain: add command to pop all common signals
>  + strbuf: add strbuf_read_once to read without blocking
>  + xread_nonblock: add functionality to read from fds without blocking
>  + xread: poll on non blocking fds
>  + submodule.c: write "Fetching submodule <foo>" to stderr
>  (this branch is tangled with sb/submodule-parallel-update.)
>
>  Add a framework to spawn a group of processes in parallel, and use
>  it to run "git fetch --recurse-submodules" in parallel.
>
>  Waiting for review.

What kind of review do you wait for?
Each patch had lots of discussion, both submodule people (Jens)
and Windows people (various) seem to be happy with this.

I assume you plan on merging this after 2.7 settled and then we can
also get the above sb/submodule-parallel-update going again.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 23:25 ` Stefan Beller
@ 2015-12-10 23:33   ` Junio C Hamano
  2015-12-10 23:51   ` Junio C Hamano
  1 sibling, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2015-12-10 23:33 UTC (permalink / raw)
  To: Stefan Beller; +Cc: git

Stefan Beller <sbeller@google.com> writes:

>> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>>   (merged to 'next' on 2015-12-04 at 2c5ea47)
>>  + run-command: detect finished children by closed pipe rather than waitpid
>>...
>>  Waiting for review.
>
> What kind of review do you wait for?

This I think was inherited from previous issues.

The cleanest response that would move these topics forward is for
area experts to step up and say "This has been discussed and Acks
are given here (cf. $URL)" ;-)

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 23:25 ` Stefan Beller
  2015-12-10 23:33   ` Junio C Hamano
@ 2015-12-10 23:51   ` Junio C Hamano
  2015-12-10 23:55     ` Stefan Beller
  1 sibling, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2015-12-10 23:51 UTC (permalink / raw)
  To: Stefan Beller; +Cc: git

Stefan Beller <sbeller@google.com> writes:

>> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>> ...
>
> I assume you plan on merging this after 2.7 settled and then we can
> also get the above sb/submodule-parallel-update going again.

Yeah, thanks for reminding me.  I think that would be a good plan
that gives us an opportunity to clean up this topic, some parts of
which are have "an early patch that was too hastily merged to 'next'
had to be tweaked by an 'oops' follow-up patch in the topic"
pattern, e.g. "make waitpid the secondary and closed pipe the
primary way to monitor children".

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 23:51   ` Junio C Hamano
@ 2015-12-10 23:55     ` Stefan Beller
  2015-12-11 17:39       ` Junio C Hamano
  2015-12-11 21:37       ` sb/submodule-parallel-fetch, was: " Johannes Sixt
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Beller @ 2015-12-10 23:55 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Thu, Dec 10, 2015 at 3:51 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Stefan Beller <sbeller@google.com> writes:
>
>>> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>>> ...
>>
>> I assume you plan on merging this after 2.7 settled and then we can
>> also get the above sb/submodule-parallel-update going again.
>
> Yeah, thanks for reminding me.  I think that would be a good plan
> that gives us an opportunity to clean up this topic, some parts of
> which are have "an early patch that was too hastily merged to 'next'
> had to be tweaked by an 'oops' follow-up patch in the topic"
> pattern, e.g. "make waitpid the secondary and closed pipe the
> primary way to monitor children".
>
> Thanks.

This makes it sound as if you would drop it from next once 2.7 is out,
expecting a complete reroll, which does the right thing from the beginning?
That was not was I was expecting, but thanks for clarifying.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 22:46 What's cooking in git.git (Dec 2015, #03; Thu, 10) Junio C Hamano
  2015-12-10 23:25 ` Stefan Beller
@ 2015-12-11  0:18 ` John Keeping
  2015-12-11 17:43   ` Junio C Hamano
  1 sibling, 1 reply; 13+ messages in thread
From: John Keeping @ 2015-12-11  0:18 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Thu, Dec 10, 2015 at 02:46:40PM -0800, Junio C Hamano wrote:
> * jk/send-email-ssl-errors (2015-11-24) 1 commit
>  - send-email: enable SSL level 1 debug output
> 
>  Improve error reporting when SMTP TLS fails.
> 
>  Waiting for a reroll.
>  ($gmane/281693)

It looks like this got lost in the noise:

http://article.gmane.org/gmane.comp.version-control.git/281975

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 23:55     ` Stefan Beller
@ 2015-12-11 17:39       ` Junio C Hamano
  2015-12-11 21:37       ` sb/submodule-parallel-fetch, was: " Johannes Sixt
  1 sibling, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2015-12-11 17:39 UTC (permalink / raw)
  To: Stefan Beller; +Cc: git

Stefan Beller <sbeller@google.com> writes:

> On Thu, Dec 10, 2015 at 3:51 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Stefan Beller <sbeller@google.com> writes:
>>
>>>> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>>>> ...
>>>
>>> I assume you plan on merging this after 2.7 settled and then we can
>>> also get the above sb/submodule-parallel-update going again.
>>
>> Yeah, thanks for reminding me.  I think that would be a good plan
>> that gives us an opportunity to clean up this topic, some parts of
>> which are have "an early patch that was too hastily merged to 'next'
>> had to be tweaked by an 'oops' follow-up patch in the topic"
>> pattern, e.g. "make waitpid the secondary and closed pipe the
>> primary way to monitor children".
>>
>> Thanks.
>
> This makes it sound as if you would drop it from next once 2.7 is out,
> expecting a complete reroll, which does the right thing from the beginning?

Yes, what is still in 'next' when a new release is made has the
chance to (re)do the right thing from the beginning, and it also can
lose merges from other topics in the middle of the topic if they
have graduated to 'master'.

A topic that did the right thing from this cycle already, but needs
to stay in 'next' only because the area it touches is so important
and deserves more real world testing by those who run 'next', may
not have to reroll.

I think two sb/submodule-parallel-* topics fall into the former
category, i.e. ones that can take advantage of the chance to escape
the rigidity of 'next' at the release cycle boundary, and I think
we should grab that opportunity to clean these series up.

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-11  0:18 ` John Keeping
@ 2015-12-11 17:43   ` Junio C Hamano
  0 siblings, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2015-12-11 17:43 UTC (permalink / raw)
  To: John Keeping; +Cc: git

John Keeping <john@keeping.me.uk> writes:

> On Thu, Dec 10, 2015 at 02:46:40PM -0800, Junio C Hamano wrote:
>> * jk/send-email-ssl-errors (2015-11-24) 1 commit
>>  - send-email: enable SSL level 1 debug output
>> 
>>  Improve error reporting when SMTP TLS fails.
>> 
>>  Waiting for a reroll.
>>  ($gmane/281693)
>
> It looks like this got lost in the noise:
>
> http://article.gmane.org/gmane.comp.version-control.git/281975

Indeed it was; thanks for a pointer.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-10 23:55     ` Stefan Beller
  2015-12-11 17:39       ` Junio C Hamano
@ 2015-12-11 21:37       ` Johannes Sixt
  2015-12-11 22:52         ` Stefan Beller
  1 sibling, 1 reply; 13+ messages in thread
From: Johannes Sixt @ 2015-12-11 21:37 UTC (permalink / raw)
  To: Stefan Beller; +Cc: Junio C Hamano, git

Am 11.12.2015 um 00:55 schrieb Stefan Beller:
> On Thu, Dec 10, 2015 at 3:51 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Stefan Beller <sbeller@google.com> writes:
>>
>>>> * sb/submodule-parallel-fetch (2015-11-24) 17 commits
>>>> ...
>>>
>>> I assume you plan on merging this after 2.7 settled and then we can
>>> also get the above sb/submodule-parallel-update going again.
>>
>> Yeah, thanks for reminding me.  I think that would be a good plan
>> that gives us an opportunity to clean up this topic, some parts of
>> which are have "an early patch that was too hastily merged to 'next'
>> had to be tweaked by an 'oops' follow-up patch in the topic"
>> pattern, e.g. "make waitpid the secondary and closed pipe the
>> primary way to monitor children".
>>
>> Thanks.
> 
> This makes it sound as if you would drop it from next once 2.7 is out,
> expecting a complete reroll, which does the right thing from the beginning?
> That was not was I was expecting, but thanks for clarifying.

Also, rebuilding the topic such that it takes the direct route to its
current state would help bisectability on Windows.

Generally, I'm already quite satisfied with the state of the
infrastructure at the tip of the branch.

Nevertheless, I have a few niggles.

The primary one is that we are using a global variable of type
struct parallel_processes to keep track of the processes. Fortunately,
most functions already take a pointer (I gather you did anticipate an
object oriented use of the functions). The only exception is pp_init():
It returns a pointer to the global object, which is then passed around
to the other functions. This does not conform to our usual style,
however, where the initializer function takes a pointer to the object,
too.

After converting pp_init, we can have a nicely object oriented
collection of functions and get rid of the global object ... almost.

We still need a global variable for the signal handler. But since
signals and their handlers are a global resource, it is not that bad to
have a global variable that is dedicated to signal handling.

Another small nit is that I found it confusing that the closure
parameters are arranged differently in the callback functions. Granted,
in get_next_task one of them is an out parameter, but that is actually
an argument to move it to the end of the parameter list, IMHO.

On top of that I found an error or two in the documentation, and I have
a few suggestions for improvements.

All this is summarized in the patch below.

diff --git a/run-command.c b/run-command.c
index db4d916..f3addb9 100644
--- a/run-command.c
+++ b/run-command.c
@@ -864,7 +864,7 @@ enum child_state {
 	GIT_CP_WAIT_CLEANUP,
 };
 
-static struct parallel_processes {
+struct parallel_processes {
 	void *data;
 
 	int max_processes;
@@ -890,7 +890,7 @@ static struct parallel_processes {
 
 	int output_owner;
 	struct strbuf buffered_output; /* of finished children */
-} parallel_processes_struct;
+};
 
 static int default_start_failure(struct child_process *cp,
 				 struct strbuf *err,
@@ -933,23 +933,23 @@ static void kill_children(struct parallel_processes *pp, int signo)
 			kill(pp->children[i].process.pid, signo);
 }
 
+static struct parallel_processes *pp_for_signal;
+
 static void handle_children_on_signal(int signo)
 {
-	struct parallel_processes *pp = &parallel_processes_struct;
-
-	kill_children(pp, signo);
+	kill_children(pp_for_signal, signo);
 	sigchain_pop(signo);
 	raise(signo);
 }
 
-static struct parallel_processes *pp_init(int n,
-					  get_next_task_fn get_next_task,
-					  start_failure_fn start_failure,
-					  task_finished_fn task_finished,
-					  void *data)
+static void pp_init(struct parallel_processes *pp,
+		    int n,
+		    get_next_task_fn get_next_task,
+		    start_failure_fn start_failure,
+		    task_finished_fn task_finished,
+		    void *data)
 {
 	int i;
-	struct parallel_processes *pp = &parallel_processes_struct;
 
 	if (n < 1)
 		n = online_cpus();
@@ -976,8 +976,9 @@ static struct parallel_processes *pp_init(int n,
 		pp->pfd[i].events = POLLIN | POLLHUP;
 		pp->pfd[i].fd = -1;
 	}
+
+	pp_for_signal = pp;
 	sigchain_push_common(handle_children_on_signal);
-	return pp;
 }
 
 static void pp_cleanup(struct parallel_processes *pp)
@@ -1019,10 +1020,10 @@ static int pp_start_one(struct parallel_processes *pp)
 	if (i == pp->max_processes)
 		die("BUG: bookkeeping is hard");
 
-	code = pp->get_next_task(&pp->children[i].data,
-				 &pp->children[i].process,
+	code = pp->get_next_task(&pp->children[i].process,
 				 &pp->children[i].err,
-				 pp->data);
+				 pp->data,
+				 &pp->children[i].data);
 	if (!code) {
 		strbuf_addbuf(&pp->buffered_output, &pp->children[i].err);
 		strbuf_reset(&pp->children[i].err);
@@ -1153,35 +1154,35 @@ int run_processes_parallel(int n,
 	int i, code;
 	int output_timeout = 100;
 	int spawn_cap = 4;
-	struct parallel_processes *pp;
+	struct parallel_processes pp;
 
-	pp = pp_init(n, get_next_task, start_failure, task_finished, pp_cb);
+	pp_init(&pp, n, get_next_task, start_failure, task_finished, pp_cb);
 	while (1) {
 		for (i = 0;
-		    i < spawn_cap && !pp->shutdown &&
-		    pp->nr_processes < pp->max_processes;
+		    i < spawn_cap && !pp.shutdown &&
+		    pp.nr_processes < pp.max_processes;
 		    i++) {
-			code = pp_start_one(pp);
+			code = pp_start_one(&pp);
 			if (!code)
 				continue;
 			if (code < 0) {
-				pp->shutdown = 1;
-				kill_children(pp, -code);
+				pp.shutdown = 1;
+				kill_children(&pp, -code);
 			}
 			break;
 		}
-		if (!pp->nr_processes)
+		if (!pp.nr_processes)
 			break;
-		pp_buffer_stderr(pp, output_timeout);
-		pp_output(pp);
-		code = pp_collect_finished(pp);
+		pp_buffer_stderr(&pp, output_timeout);
+		pp_output(&pp);
+		code = pp_collect_finished(&pp);
 		if (code) {
-			pp->shutdown = 1;
+			pp.shutdown = 1;
 			if (code < 0)
-				kill_children(pp, -code);
+				kill_children(&pp, -code);
 		}
 	}
 
-	pp_cleanup(pp);
+	pp_cleanup(&pp);
 	return 0;
 }
diff --git a/run-command.h b/run-command.h
index 414cc81..a4745b0 100644
--- a/run-command.h
+++ b/run-command.h
@@ -126,8 +126,6 @@ int finish_async(struct async *async);
  * pp_cb is the callback cookie as passed to run_processes_parallel.
  * You can store a child process specific callback cookie in pp_task_cb.
  *
- * You MUST set stdout_to_stderr.
- *
  * Even after returning 0 to indicate that there are no more processes,
  * this function will be called again until there are no more running
  * child processes.
@@ -135,12 +133,12 @@ int finish_async(struct async *async);
  * Return 1 if the next child is ready to run.
  * Return 0 if there are currently no more tasks to be processed.
  * To send a signal to other child processes for abortion,
- * return negative signal code.
+ * return the negative signal number.
  */
-typedef int (*get_next_task_fn)(void **pp_task_cb,
-				struct child_process *cp,
+typedef int (*get_next_task_fn)(struct child_process *cp,
 				struct strbuf *err,
-				void *pp_cb);
+				void *pp_cb,
+				void **pp_task_cb);
 
 /**
  * This callback is called whenever there are problems starting
@@ -155,7 +153,7 @@ typedef int (*get_next_task_fn)(void **pp_task_cb,
  *
  * Return 0 to continue the parallel processing. To abort return non zero.
  * To send a signal to other child processes for abortion, return
- * negative signal code.
+ * the negative signal number.
  */
 typedef int (*start_failure_fn)(struct child_process *cp,
 				struct strbuf *err,
@@ -174,7 +172,7 @@ typedef int (*start_failure_fn)(struct child_process *cp,
  *
  * Return 0 to continue the parallel processing.  To abort return non zero.
  * To send a signal to other child processes for abortion, return
- * negative signal code.
+ * the negative signal number.
  */
 typedef int (*task_finished_fn)(int result,
 				struct child_process *cp,
@@ -184,14 +182,14 @@ typedef int (*task_finished_fn)(int result,
 
 /**
  * Runs up to n processes at the same time. Whenever a process can be
- * started, the callback `get_next_task` is called to obtain the data
- * fed to the child process.
+ * started, the callback get_next_task_fn is called to obtain the data
+ * required to start another child process.
  *
- * The children started via this function run in parallel and their output
- * to stderr is buffered, while one of the children will directly output
- * to stderr.
+ * The children started via this function run in parallel. Their output
+ * (both stdout and stderr) is routed to stderr in a manner that output
+ * from different tasks does not interleave.
  *
- * If start_failure_fn and return_value_fn are NULL, default handlers
+ * If start_failure_fn or task_finished_fn are NULL, default handlers
  * will be used. The default handlers will print an error message on
  * error without issuing an emergency stop.
  */
diff --git a/submodule.c b/submodule.c
index 281bccd..00b7c4a 100644
--- a/submodule.c
+++ b/submodule.c
@@ -627,8 +627,8 @@ struct submodule_parallel_fetch {
 };
 #define SPF_INIT {0, ARGV_ARRAY_INIT, NULL, NULL, 0, 0, 0}
 
-static int get_next_submodule(void **task_cb, struct child_process *cp,
-			      struct strbuf *err, void *data)
+static int get_next_submodule(struct child_process *cp,
+			      struct strbuf *err, void *data, void **task_cb)
 {
 	int ret = 0;
 	struct submodule_parallel_fetch *spf = data;
diff --git a/test-run-command.c b/test-run-command.c
index b1f04d1..f964507 100644
--- a/test-run-command.c
+++ b/test-run-command.c
@@ -16,10 +16,10 @@
 #include <errno.h>
 
 static int number_callbacks;
-static int parallel_next(void** task_cb,
-			 struct child_process *cp,
+static int parallel_next(struct child_process *cp,
 			 struct strbuf *err,
-			 void *cb)
+			 void *cb,
+			 void** task_cb)
 {
 	struct child_process *d = cb;
 	if (number_callbacks >= 4)
@@ -31,10 +31,10 @@ static int parallel_next(void** task_cb,
 	return 1;
 }
 
-static int no_job(void** task_cb,
-		  struct child_process *cp,
+static int no_job(struct child_process *cp,
 		  struct strbuf *err,
-		  void *cb)
+		  void *cb,
+		  void** task_cb)
 {
 	strbuf_addf(err, "no further jobs available\n");
 	return 0;

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-11 21:37       ` sb/submodule-parallel-fetch, was: " Johannes Sixt
@ 2015-12-11 22:52         ` Stefan Beller
  2015-12-11 23:07           ` sb/submodule-parallel-fetch, Junio C Hamano
  2015-12-11 23:39           ` sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10) Johannes Sixt
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Beller @ 2015-12-11 22:52 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Junio C Hamano, git

On Fri, Dec 11, 2015 at 1:37 PM, Johannes Sixt <j6t@kdbg.org> wrote:
>
> Generally, I'm already quite satisfied with the state of the
> infrastructure at the tip of the branch.
>

I was about the rework the patch series.

> Nevertheless, I have a few niggles.

If you don't mind I'll split your patch into chunks and
squash these where appropriate and resend the series
with the suggestions included without the intermediate stages
of non compiling code for Windows.

>
> The primary one is that we are using a global variable of type
> struct parallel_processes to keep track of the processes. Fortunately,
> most functions already take a pointer (I gather you did anticipate an
> object oriented use of the functions). The only exception is pp_init():
> It returns a pointer to the global object, which is then passed around
> to the other functions. This does not conform to our usual style,
> however, where the initializer function takes a pointer to the object,
> too.

Noted. I thought about the init function as a constructor,
such as

    foo *pp = new foo();

in C++ would be just syntactic sugar for what I did there.
I'll adhere to Git style then instead.

>
> After converting pp_init, we can have a nicely object oriented
> collection of functions and get rid of the global object ... almost.
>
> We still need a global variable for the signal handler. But since
> signals and their handlers are a global resource, it is not that bad to
> have a global variable that is dedicated to signal handling.
>
> Another small nit is that I found it confusing that the closure
> parameters are arranged differently in the callback functions. Granted,
> in get_next_task one of them is an out parameter, but that is actually
> an argument to move it to the end of the parameter list, IMHO.
>
> On top of that I found an error or two in the documentation, and I have
> a few suggestions for improvements.
>
> All this is summarized in the patch below.

Thanks for the improvements!

Stefan

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: sb/submodule-parallel-fetch,
  2015-12-11 22:52         ` Stefan Beller
@ 2015-12-11 23:07           ` Junio C Hamano
  2015-12-14 19:37             ` sb/submodule-parallel-fetch, Stefan Beller
  2015-12-11 23:39           ` sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10) Johannes Sixt
  1 sibling, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2015-12-11 23:07 UTC (permalink / raw)
  To: Stefan Beller; +Cc: Johannes Sixt, git

Stefan Beller <sbeller@google.com> writes:

> On Fri, Dec 11, 2015 at 1:37 PM, Johannes Sixt <j6t@kdbg.org> wrote:
>>
>> Generally, I'm already quite satisfied with the state of the
>> infrastructure at the tip of the branch.
>
> I was about the rework the patch series.

OK.

I think the very early part of the series, up to 8fc3f2ee (sigchain:
add command to pop all common signals, 2015-09-30), may be fine
as-is (i.e. just rebase on top of updated 'master').

The step after that, i.e. asynch processor, is the most interesting
and important one.  Since it was written, I think the improvements
that we want to be rolled into it from the beginning are:

 - do not rely on waitpid(-1);

 - no need for set_nonglocking(), squashing a4433fd4a and
   6f963a895a9 in;

 - correct the early-shutdown bug 79f38577 and again in 63ce47e1;

 - child_process_clear() in 1c53754a, which probably will become
   unnecessary if the series is rebuilt on top of updated 'master';

 - follow-up fixes and enhancements to the tests in c3a5d11 and
   74cc04d;

 - debugging support in 7eb93e91069 (from the other series that
   builds on top).

That would slim down not just the total number of patches, but also
the amount of the code that needs to be looked at (as we would not
add code only to later remove or fixup).

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10)
  2015-12-11 22:52         ` Stefan Beller
  2015-12-11 23:07           ` sb/submodule-parallel-fetch, Junio C Hamano
@ 2015-12-11 23:39           ` Johannes Sixt
  1 sibling, 0 replies; 13+ messages in thread
From: Johannes Sixt @ 2015-12-11 23:39 UTC (permalink / raw)
  To: Stefan Beller; +Cc: Junio C Hamano, git

Am 11.12.2015 um 23:52 schrieb Stefan Beller:
> If you don't mind I'll split your patch into chunks and
> squash these where appropriate

I don't mind at all; please pick what you like.

-- Hannes

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: sb/submodule-parallel-fetch,
  2015-12-11 23:07           ` sb/submodule-parallel-fetch, Junio C Hamano
@ 2015-12-14 19:37             ` Stefan Beller
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Beller @ 2015-12-14 19:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Johannes Sixt, git

On Fri, Dec 11, 2015 at 3:07 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Stefan Beller <sbeller@google.com> writes:
>
>> On Fri, Dec 11, 2015 at 1:37 PM, Johannes Sixt <j6t@kdbg.org> wrote:
>>>
>>> Generally, I'm already quite satisfied with the state of the
>>> infrastructure at the tip of the branch.
>>
>> I was about the rework the patch series.
>
> OK.
>
> I think the very early part of the series, up to 8fc3f2ee (sigchain:
> add command to pop all common signals, 2015-09-30), may be fine
> as-is (i.e. just rebase on top of updated 'master').

I did that.

>
> The step after that, i.e. asynch processor, is the most interesting
> and important one.  Since it was written, I think the improvements
> that we want to be rolled into it from the beginning are:
>
>  - do not rely on waitpid(-1);

and documented in the commit message why we abandoned that
implementation.

>
>  - no need for set_nonglocking(), squashing a4433fd4a and
>    6f963a895a9 in;

6f963a895a9 (strbuf: update documentation for strbuf_read_once())
squashed into a commit before your anticipated "very early part
which  may be fine as is", but no worries.

>  - correct the early-shutdown bug 79f38577 and again in 63ce47e1;
>
>  - child_process_clear() in 1c53754a, which probably will become
>    unnecessary if the series is rebuilt on top of updated 'master';

it did.

>
>  - follow-up fixes and enhancements to the tests in c3a5d11 and
>    74cc04d;
>
>  - debugging support in 7eb93e91069 (from the other series that
>    builds on top).

not just cherry picking that one, but also adapt the tests in this series to
use it.

>
> That would slim down not just the total number of patches, but also
> the amount of the code that needs to be looked at (as we would not
> add code only to later remove or fixup).

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-12-14 19:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-10 22:46 What's cooking in git.git (Dec 2015, #03; Thu, 10) Junio C Hamano
2015-12-10 23:25 ` Stefan Beller
2015-12-10 23:33   ` Junio C Hamano
2015-12-10 23:51   ` Junio C Hamano
2015-12-10 23:55     ` Stefan Beller
2015-12-11 17:39       ` Junio C Hamano
2015-12-11 21:37       ` sb/submodule-parallel-fetch, was: " Johannes Sixt
2015-12-11 22:52         ` Stefan Beller
2015-12-11 23:07           ` sb/submodule-parallel-fetch, Junio C Hamano
2015-12-14 19:37             ` sb/submodule-parallel-fetch, Stefan Beller
2015-12-11 23:39           ` sb/submodule-parallel-fetch, was: Re: What's cooking in git.git (Dec 2015, #03; Thu, 10) Johannes Sixt
2015-12-11  0:18 ` John Keeping
2015-12-11 17:43   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).