* What's cooking in git.git (Nov 2010, #02; Wed, 17) @ 2010-11-18 0:56 Junio C Hamano 2010-11-18 14:00 ` Jakub Narebski 0 siblings, 1 reply; 9+ messages in thread From: Junio C Hamano @ 2010-11-18 0:56 UTC (permalink / raw) To: git Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' 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. -------------------------------------------------- [Graduated to "master"] * ak/submodule-sync (2010-10-08) 1 commit (merged to 'next' on 2010-11-05 at 5a2f940) + submodule sync: Update "submodule.<name>.url" for empty directories * bg/maint-gitweb-test-lib (2010-10-20) 1 commit (merged to 'next' on 2010-11-05 at 0ead869) + t/gitweb-lib: Don't pass constant to decode_utf8 * cb/diff-fname-optim (2010-09-26) 3 commits (merged to 'next' on 2010-11-05 at b3b09f3) + diff: avoid repeated scanning while looking for funcname + do not search functions for patch ID + add rebase patch id tests * dk/maint-blame-el (2010-05-25) 1 commit (merged to 'next' on 2010-11-05 at 8456c66) + git-blame.el: Add (require 'format-spec) * jk/maint-apply-no-binary (2010-10-18) 1 commit (merged to 'next' on 2010-11-05 at 8b7543a) + apply: don't segfault on binary files with missing data * jk/maint-rev-list-nul (2010-10-07) 1 commit (merged to 'next' on 2010-11-05 at 406cba1) + rev-list: handle %x00 NUL in user format * jk/missing-config (2010-10-21) 1 commit (merged to 'next' on 2010-11-05 at 31fda69) + config: treat non-existent config files as empty * jk/no-textconv-symlink (2010-09-21) 1 commit (merged to 'next' on 2010-11-05 at 0a99e75) + diff: don't use pathname-based diff drivers for symlinks (this branch is used by ks/no-textconv-symlink.) * jk/push-progress (2010-10-17) 8 commits (merged to 'next' on 2010-11-05 at 9207c6d) + push: pass --progress down to git-pack-objects + t5523-push-upstream: test progress messages + t5523-push-upstream: add function to ensure fresh upstream repo + test_terminal: ensure redirections work reliably + test_terminal: catch use without TTY prerequisite + test-lib: allow test code to check the list of declared prerequisites + tests: test terminal output to both stdout and stderr + tests: factor out terminal handling from t7006 * jl/maint-pull-tags-doc (2010-11-03) 1 commit (merged to 'next' on 2010-11-05 at 861d16a) + pull: Remove --tags option from manpage * jm/mailmap (2010-10-19) 3 commits (merged to 'next' on 2010-11-05 at ef1e754) + t4203: do not let "git shortlog" DWIM based on tty + t4203 (mailmap): stop hardcoding commit ids and dates + mailmap: fix use of freed memory * jn/gitweb-test (2010-09-26) 4 commits (merged to 'next' on 2010-11-05 at 90b3adf) + gitweb/Makefile: Include gitweb/config.mak + gitweb/Makefile: Add 'test' and 'test-installed' targets + t/gitweb-lib.sh: Add support for GITWEB_TEST_INSTALLED + gitweb: Move call to evaluate_git_version after evaluate_gitweb_config (this branch is used by jh/gitweb-caching.) * jn/send-pack-error (2010-10-16) 1 commit (merged to 'next' on 2010-11-05 at ef559d4) + send-pack: avoid redundant "pack-objects died with strange error" * kb/completion-checkout (2010-10-12) 1 commit (merged to 'next' on 2010-11-05 at 6836d70) + completion: Support the DWIM mode for git checkout * kb/maint-diff-ws-check (2010-10-20) 2 commits (merged to 'next' on 2010-11-05 at 861b5ac) + diff: handle lines containing only whitespace and tabs better + test-lib: extend test_decode_color to handle more color codes * kb/maint-submodule-savearg (2010-11-02) 2 commits (merged to 'next' on 2010-11-05 at 10e1aeb) + submodule: only preserve flags across recursive status/update invocations + submodule: preserve all arguments exactly when recursing * ks/no-textconv-symlink (2010-09-29) 3 commits (merged to 'next' on 2010-11-05 at 32f0580) + blame,cat-file --textconv: Don't assume mode is ``S_IFREF | 0664'' + blame,cat-file: Demonstrate --textconv is wrongly running converter on symlinks + blame,cat-file: Prepare --textconv tests for correctly-failing conversion program (this branch uses jk/no-textconv-symlink.) * mg/make-prove (2010-10-14) 1 commit (merged to 'next' on 2010-11-05 at ec4f806) + test: allow running the tests under "prove" * sg/bisect (2010-10-10) 3 commits (merged to 'next' on 2010-11-05 at 4a8b88d) + bisect: check for mandatory argument of 'bisect replay' + bisect: improve error msg of 'bisect reset' when original HEAD is deleted + bisect: improve error message of 'bisect log' while not bisecting * sg/completion (2010-10-11) 4 commits (merged to 'next' on 2010-11-05 at 4967932) + bash: support pretty format aliases + bash: support more 'git notes' subcommands and their options + bash: not all 'git bisect' subcommands make sense when not bisecting + bash: offer refs for 'git bisect start' * tr/maint-git-repack-tmpfile (2010-10-19) 1 commit (merged to 'next' on 2010-11-05 at 80ad03a) + repack: place temporary packs under .git/objects/pack/ * tr/maint-merge-file-subdir (2010-10-17) 2 commits (merged to 'next' on 2010-11-05 at a2873a4) + merge-file: correctly find files when called in subdir + prefix_filename(): safely handle the case where pfx_len=0 -------------------------------------------------- [New Topics] * cb/maint-orphan-merge-noclobber (2010-11-14) 1 commit (merged to 'next' on 2010-11-15 at 046c5e5) + do not overwrite untracked during merge from unborn branch Will merge to master soonish. * gb/gitweb-remote-heads (2010-11-11) 11 commits - git instaweb: enable remote_heads - gitweb: group remote heads by remote - gitweb: provide a routine to display (sub)sections - gitweb: refactor repository URL printing - gitweb: remotes view for a single remote - gitweb: allow action specialization in page header - gitweb: nagivation menu for tags, heads and remotes - gitweb: separate heads and remotes lists - gitweb: git_get_heads_list accepts an optional list of refs - gitweb: introduce remote_heads feature - gitweb: use fullname as hash_base in heads link Acked by Jakub. Will merge to next. * gc/http-with-non-ascii-username-url (2010-11-14) 2 commits - Fix username and password extraction from HTTP URLs - t5550: test HTTP authentication and userinfo decoding Acked by Tay. Will merge to next. * jk/maint-decorate-01-bool (2010-11-17) 1 commit - log.decorate: accept 0/1 bool values (this branch is used by jk/pager-per-command.) Looked reasonable. Will merge to next. * jk/pager-per-command (2010-11-17) 1 commit - allow command-specific pagers in pager.<cmd> (this branch uses jk/maint-decorate-01-bool.) Looked reasonable. Will merge to next. * jn/getenv-poison (2010-11-12) 1 commit . add GETENV_POISON option to simulate unfriendly getenv() (this branch uses ks/maint-getenv-fix.) * jn/gitweb-time-hires-comes-with-5.8 (2010-11-09) 1 commit - gitweb: Time::HiRes is in core for Perl 5.8 Looked reasonable. Will merge to next. * jn/ignore-doc (2010-11-10) 2 commits - Documentation: point to related commands from gitignore - Documentation: split gitignore page into sections Looked reasonable. Will merge to next. * jn/thinner-wrapper (2010-11-06) 7 commits - Remove pack file handling dependency from wrapper.o - pack-objects: mark file-local variable static - wrapper: give zlib wrappers their own translation unit - strbuf: move strbuf_branchname to sha1_name.c - path helpers: move git_mkstemp* to wrapper.c - wrapper: move odb_* to environment.c - wrapper: move xmmap() to sha1_file.c Looked reasonable. Will merge to next. * ks/maint-getenv-fix (2010-11-11) 1 commit - setup: make sure git_dir path is in a permanent buffer, getenv(3) case (this branch is used by jn/getenv-poison.) Looked reasonable. Will merge to next. * nd/extended-sha1-relpath (2010-11-11) 2 commits - get_sha1: support relative path ":path" syntax - Make prefix_path() return char* without const (this branch uses jn/parse-options-extra.) Perhaps needs a documentation update. * nd/maint-fix-add-typo-detection (2010-11-11) 1 commit - add: do not rely on dtype being NULL behavior Looked reasonable. Will merge to next. * rs/opt-help-text (2010-11-08) 8 commits (merged to 'next' on 2010-11-15 at 631c222) + verify-tag: document --verbose + branch: improve --verbose description + archive: improve --verbose description + Describe various forms of "be quiet" using OPT__QUIET + add OPT__FORCE + add description parameter to OPT__QUIET + add description parameter to OPT__DRY_RUN + add description parameter to OPT__VERBOSE Will merge to master soonish. -------------------------------------------------- [Stalled] * nd/index-doc (2010-09-06) 1 commit - doc: technical details about the index file format Half-written but it is a good start. I may need to give some help in describing more recent index extensions. * cb/ignored-paths-are-precious (2010-08-21) 1 commit - checkout/merge: optionally fail operation when ignored files need to be overwritten This needs tests; also we know of longstanding bugs in related area that needs to be addressed---they do not have to be part of this series but their reproduction recipe would belong to the test script for this topic. It would hurt users to make the new feature on by default, especially the ones with subdirectories that come and go. * jk/tag-contains (2010-07-05) 4 commits - Why is "git tag --contains" so slow? - default core.clockskew variable to one day - limit "contains" traversals based on commit timestamp - tag: speed up --contains calculation The idea of the bottom one is probably Ok, except that the use of object flags needs to be rethought, or at least the helper needs to be moved to builtin/tag.c to make it clear that it should not be used outside the current usage context. * jh/gitweb-caching (2010-11-01) 4 commits . gitweb: Minimal testing of gitweb caching . gitweb: File based caching layer (from git.kernel.org) . gitweb: add output buffering and associated functions . gitweb: Prepare for splitting gitweb Temporarily ejected while I shuffled jn/gitweb-testing; will queue the latest back in pu or perhaps in next. * tr/config-doc (2010-10-24) 2 commits . Documentation: complete config list from other manpages . Documentation: Move variables from config.txt to separate file This unfortunately heavily conflicts with patches in flight... -------------------------------------------------- [Cooking] * ef/mingw-daemon (2010-11-04) 16 commits (merged to 'next' on 2010-11-17 at 4a295c7) + daemon: opt-out on features that require posix + daemon: make --inetd and --detach incompatible + daemon: use socklen_t + mingw: use poll-emulation from gnulib + mingw: import poll-emulation from gnulib + daemon: get remote host address from root-process + Improve the mingw getaddrinfo stub to handle more use cases + daemon: use full buffered mode for stderr + daemon: use run-command api for async serving + mingw: add kill emulation + mingw: support waitpid with pid > 0 and WNOHANG + mingw: use real pid + inet_ntop: fix a couple of old-style decls + compat: add inet_pton and inet_ntop prototypes + mingw: implement syslog + mingw: add network-wrappers for daemon * jc/abbrev-guard (2010-10-28) 1 commit - core.abbrevguard: Ensure short object names stay unique a bit longer Will merge to next. * jc/emfile (2010-10-28) 2 commits (merged to 'next' on 2010-11-17 at dac1bc6) + A loose object is not corrupt if it cannot be read due to EMFILE + read_sha1_file(): report correct name of packfile with a corrupt object (this branch is used by sp/emfile.) * sp/emfile (2010-11-01) 2 commits - Work around EMFILE when there are too many pack files - Use git_open_noatime when accessing pack data (this branch uses jc/emfile.) Will merge to 'next', but might want to restructure the API a bit. * jl/add-p-reverse-message (2010-10-27) 1 commit (merged to 'next' on 2010-11-17 at db2ce14) + Correct help blurb in checkout -p and friends * jl/clone-recurse-sm-synonym (2010-11-04) 1 commit (merged to 'next' on 2010-11-17 at 8c326c2) + clone: Add the --recurse-submodules option as alias for --recursive * jn/cherry-pick-refresh-index (2010-10-31) 1 commit (merged to 'next' on 2010-11-17 at 75e9103) + cherry-pick/revert: transparently refresh index * jn/parse-options-extra (2010-10-24) 4 commits - update-index: migrate to parse-options API - setup: save prefix (original cwd relative to toplevel) in startup_info - parse-options: make resuming easier after PARSE_OPT_STOP_AT_NON_OPTION - parse-options: allow git commands to invent new option types (this branch is used by nd/extended-sha1-relpath.) Wait for a reroll from Jonathan (2010-11-09). * md/interix (2010-10-27) 2 commits (merged to 'next' on 2010-11-17 at 2a8b562) + Interix: add configure checks + add support for the SUA layer (interix; windows) * mm/phrase-remote-tracking (2010-11-02) 10 commits (merged to 'next' on 2010-11-15 at 07d67f4) + git-branch.txt: mention --set-upstream as a way to change upstream configuration + user-manual: remote-tracking can be checked out, with detached HEAD + user-manual.txt: explain better the remote(-tracking) branch terms + Change incorrect "remote branch" to "remote tracking branch" in C code + Change incorrect uses of "remote branch" meaning "remote-tracking" + Change "tracking branch" to "remote-tracking branch" + everyday.txt: change "tracking branch" to "remote-tracking branch" + Change remote tracking to remote-tracking in non-trivial places + Replace "remote tracking" with "remote-tracking" + Better "Changed but not updated" message in git-status Will merge to master soonish. * nd/setup (2010-11-11) 47 commits - git.txt: correct where --work-tree path is relative to - Revert "Documentation: always respect core.worktree if set" - t0001: test git init when run via an alias - Remove all logic from get_git_work_tree() - setup: rework setup_explicit_git_dir() - setup: clean up setup_discovered_git_dir() - t1020-subdirectory: test alias expansion in a subdirectory - setup: clean up setup_bare_git_dir() - setup: limit get_git_work_tree()'s to explicit setup case only - Use git_config_early() instead of git_config() during repo setup - Add git_config_early() - rev-parse: prints --git-dir relative to user's cwd - git-rev-parse.txt: clarify --git-dir - t1510: setup case #31 - t1510: setup case #30 - t1510: setup case #29 - t1510: setup case #28 - t1510: setup case #27 - t1510: setup case #26 - t1510: setup case #25 - t1510: setup case #24 - t1510: setup case #23 - t1510: setup case #22 - t1510: setup case #21 - t1510: setup case #20 - t1510: setup case #19 - t1510: setup case #18 - t1510: setup case #17 - t1510: setup case #16 - t1510: setup case #15 - t1510: setup case #14 - t1510: setup case #13 - t1510: setup case #12 - t1510: setup case #11 - t1510: setup case #10 - t1510: setup case #9 - t1510: setup case #8 - t1510: setup case #7 - t1510: setup case #6 - t1510: setup case #5 - t1510: setup case #4 - t1510: setup case #3 - t1510: setup case #2 - t1510: setup case #1 - t1510: setup case #0 - Add t1510 and basic rules that run repo setup - builtins: print setup info if repo is found I have to queue a handful of fixups still in flight. * rr/needs-clean-work-tree (2010-10-19) 1 commit (merged to 'next' on 2010-11-17 at b8aee21) + Porcelain scripts: Rewrite cryptic "needs update" error message Will merge to master soonish. * sn/diff-doc (2010-11-04) 3 commits - docs: clarify git diff modes of operation - diff,difftool: Don't use the {0,2} notation in usage strings - CodingGuidelines: Add a section on writing documentation Will merge to next. * kb/maint-rebase-autosquash (2010-11-04) 2 commits (merged to 'next' on 2010-11-15 at 9b8c830) + rebase: teach --autosquash to match on sha1 in addition to message + rebase: better rearranging of fixup!/squash! lines with --autosquash Will merge to master soonish. * kb/maint-status-cquote (2010-11-08) 1 commit - status: Quote paths with spaces in short format Will merge to next. * mg/maint-tag-rfc1991 (2010-11-10) 5 commits - tag: recognize rfc1991 signatures - tag: factor out sig detection for tag display - tag: factor out sig detection for body edits - verify-tag: factor out signature detection - t/t7004-tag: test handling of rfc1991 signatures Will merge to next. * ao/send-email-irt (2010-11-12) 2 commits (merged to 'next' on 2010-11-15 at 257c77a) + git-send-email.perl: make initial In-Reply-To apply only to first email (merged to 'next' on 2010-11-08 at d103166) + t9001: send-email interation with --in-reply-to and --chain-reply-to Will merge to master soonish. * cm/diff-check-at-eol (2010-10-10) 1 commit (merged to 'next' on 2010-11-17 at ad7005a) + diff --check: correct line numbers of new blank lines at EOF * fc/apply-p2-get-header-name (2010-10-21) 2 commits (merged to 'next' on 2010-11-17 at 05a8e94) + test: git-apply -p2 rename/chmod only + Fix git-apply with -p greater than 1 * jk/add-e-doc (2010-11-08) 2 commits (merged to 'next' on 2010-11-15 at e971401) + docs: give more hints about how "add -e" works (merged to 'next' on 2010-11-05 at 389fee7) + docs: give more hints about how "add -e" works Will merge to master soonish. * jk/diff-CBM (2010-10-21) 1 commit (merged to 'next' on 2010-11-05 at 9d1ec14) + diff: report bogus input to -C/-M/-B Will merge to master soonish. * jn/fast-import-fix (2010-10-20) 4 commits (merged to 'next' on 2010-11-17 at ef3b791) + fast-import: do not clear notes in do_change_note_fanout() + t9300 (fast-import): another test for the "replace root" feature + fast-import: tighten M 040000 syntax + fast-import: filemodify after M 040000 <tree> "" crashes * jn/git-cmd-h-bypass-setup (2010-10-22) 7 commits - update-index -h: show usage even with corrupt index - merge -h: show usage even with corrupt index - ls-files -h: show usage even with corrupt index - gc -h: show usage even with broken configuration - commit/status -h: show usage even with broken configuration - checkout-index -h: show usage even in an invalid repository - branch -h: show usage even in an invalid repository (this branch uses en/and-cascade-tests.) Will merge to next. * kb/blame-author-email (2010-10-15) 1 commit (merged to 'next' on 2010-11-17 at 6fd6a2f) + blame: Add option to show author email instead of name * np/diff-in-corrupt-repository (2010-10-22) 1 commit (merged to 'next' on 2010-11-17 at b57a6cb) + diff: don't presume empty file when corresponding object is missing * np/pack-broken-boundary (2010-10-22) 1 commit (merged to 'next' on 2010-11-17 at 69a9f46) + make pack-objects a bit more resilient to repo corruption * yd/dir-rename (2010-10-29) 5 commits - Allow hiding renames of individual files involved in a directory rename. - Unified diff output format for bulk moves. - Add testcases for the --detect-bulk-moves diffcore flag. - Raw diff output format for bulk moves. - Introduce bulk-move detection in diffcore. Yet to be rerolled. * en/merge-recursive (2010-11-08) 40 commits (merged to 'next' on 2010-11-17 at 1b6f865) + t6022: Use -eq not = to test output of wc -l (merged to 'next' on 2010-11-05 at 16902eb) + merge-recursive:make_room_for_directories - work around dumb compilers + merge-recursive: Remove redundant path clearing for D/F conflicts + merge-recursive: Make room for directories in D/F conflicts + handle_delete_modify(): Check whether D/F conflicts are still present + merge_content(): Check whether D/F conflicts are still present + conflict_rename_rename_1to2(): Fix checks for presence of D/F conflicts + conflict_rename_delete(): Check whether D/F conflicts are still present + merge-recursive: Delay modify/delete conflicts if D/F conflict present + merge-recursive: Delay content merging for renames + merge-recursive: Delay handling of rename/delete conflicts + merge-recursive: Move handling of double rename of one file to other file + merge-recursive: Move handling of double rename of one file to two + merge-recursive: Avoid doubly merging rename/add conflict contents + merge-recursive: Update merge_content() call signature + merge-recursive: Update conflict_rename_rename_1to2() call signature + merge-recursive: Structure process_df_entry() to handle more cases + merge-recursive: Have process_entry() skip D/F or rename entries + merge-recursive: New function to assist resolving renames in-core only + merge-recursive: New data structures for deferring of D/F conflicts + merge-recursive: Move process_entry's content merging into a function + merge-recursive: Move delete/modify handling into dedicated function + merge-recursive: Move rename/delete handling into dedicated function + merge-recursive: Nuke rename/directory conflict detection + merge-recursive: Rename conflict_rename_rename*() for clarity + merge-recursive: Small code clarification -- variable name and comments + t6036: Add testcase for undetected conflict + t6036: Add a second testcase similar to the first but with content changes + t6036: Test index and worktree state, not just that merge fails + t6020: Add a testcase for modify/delete + directory/file conflict + t6020: Modernize style a bit + t6022: Add tests for rename/rename combined with D/F conflicts + t6022: Add paired rename+D/F conflict: (two/file, one/file) -> (one, two) + t6022: Add tests with both rename source & dest involved in D/F conflicts + t6022: Add tests for reversing order of merges when D/F conflicts present + t6022: Add test combinations of {content conflict?, D/F conflict remains?} + t6032: Add a test checking for excessive output from merge + merge-recursive: Restructure showing how to chain more process_* functions + t3030: Add a testcase for resolvable rename/add conflict with symlinks + Merge branch 'en/rename-d-f' into en/merge-recursive (this branch uses en/rename-d-f.) * il/remote-fd-ext (2010-10-12) 3 commits (merged to 'next' on 2010-11-05 at 7413413) + git-remote-ext + git-remote-fd + Add bidirectional_transfer_loop() * ak/apply-non-git-epoch (2010-09-29) 2 commits (merged to 'next' on 2010-11-17 at a00579c) + apply: handle patches with funny filename and colon in timezone + apply: Recognize epoch timestamps with : in the timezone * cb/leading-path-removal (2010-11-15) 6 commits (merged to 'next' on 2010-11-17 at ec7d709) + use persistent memory for rejected paths (merged to 'next' on 2010-11-05 at 55ea322) + do not overwrite files in leading path + lstat_cache: optionally return match_len + add function check_ok_to_remove() + t7607: add leading-path tests + t7607: use test-lib functions and check MERGE_HEAD * jh/notes-merge (2010-11-09) 23 commits - Provide 'git merge --abort' as a synonym to 'git reset --merge' - cmd_merge(): Parse options before checking MERGE_HEAD - Provide 'git notes get-ref' to easily retrieve current notes ref - git notes merge: Add testcases for merging notes trees at different fanouts - git notes merge: Add another auto-resolving strategy: "cat_sort_uniq" - git notes merge: --commit should fail if underlying notes ref has moved - git notes merge: List conflicting notes in notes merge commit message - git notes merge: Manual conflict resolution, part 2/2 - git notes merge: Manual conflict resolution, part 1/2 - Documentation: Preliminary docs on 'git notes merge' - git notes merge: Add automatic conflict resolvers (ours, theirs, union) - git notes merge: Handle real, non-conflicting notes merges - builtin/notes.c: Refactor creation of notes commits. - git notes merge: Initial implementation handling trivial merges only - builtin/notes.c: Split notes ref DWIMmery into a separate function - notes.c: Use two newlines (instead of one) when concatenating notes - (trivial) t3303: Indent with tabs instead of spaces for consistency - notes.h/c: Propagate combine_notes_fn return value to add_note() and beyond - notes.h/c: Allow combine_notes functions to remove notes - notes.c: Reorder functions in preparation for next commit - notes.h: Make default_notes_ref() available in notes API - (trivial) notes.h: Minor documentation fixes to copy_notes() - notes.c: Hexify SHA1 in die() message from init_notes() Rerolled; will merge to next. * pn/commit-autosquash (2010-11-02) 6 commits - add tests of commit --squash - commit: --squash option for use with rebase --autosquash - add tests of commit --fixup - commit: --fixup option for use with rebase --autosquash - pretty.c: teach format_commit_message() to reencode the output - commit: helper methods to reduce redundant blocks of code Will merge to next. * jj/icase-directory (2010-10-03) 8 commits - Support case folding in git fast-import when core.ignorecase=true - Support case folding for git add when core.ignorecase=true - Add case insensitivity support when using git ls-files - Add case insensitivity support for directories when using git status - Case insensitivity support for .gitignore via core.ignorecase - Add string comparison functions that respect the ignore_case variable. - Makefile & configure: add a NO_FNMATCH_CASEFOLD flag - Makefile & configure: add a NO_FNMATCH flag Will merge to next. * en/and-cascade-tests (2010-10-31) 25 commits (merged to 'next' on 2010-11-15 at d51ec77) + t4124 (apply --whitespace): use test_might_fail + t3404: do not use 'describe' to implement test_cmp_rev + t3404 (rebase -i): introduce helper to check position of HEAD + t3404 (rebase -i): move comment to description + t3404 (rebase -i): unroll test_commit loops + t3301 (notes): use test_expect_code for clarity + t1400 (update-ref): use test_must_fail + t1502 (rev-parse --parseopt): test exit code from "-h" + t6022 (renaming merge): chain test commands with && + test-lib: introduce test_line_count to measure files + tests: add missing &&, batch 2 + tests: add missing && + Introduce sane_unset and use it to ensure proper && chaining + t7800 (difftool): add missing && + t7601 (merge-pull-config): add missing && + t7001 (mv): add missing && + t6016 (rev-list-graph-simplify-history): add missing && + t5602 (clone-remote-exec): add missing && + t4026 (color): remove unneeded and unchained command + t4019 (diff-wserror): add lots of missing && + t4202 (log): Replace '<git-command> || :' with test_might_fail + t4002 (diff-basic): use test_might_fail for commands that might fail + t100[12] (read-tree-m-2way, read_tree_m_u_2way): add missing && + t4017 (diff-retval): replace manual exit code check with test_expect_code + test-lib: make test_expect_code a test command (this branch is used by jn/git-cmd-h-bypass-setup.) * nd/struct-pathspec (2010-09-20) 5 commits - ce_path_match: drop prefix matching in favor of match_pathspec - Convert ce_path_match() to use struct pathspec - tree_entry_interesting: turn to match_pathspec if wildcard is present - pathspec: add tree_recursive_diff parameter - pathspec: mark wildcard pathspecs from the beginning (this branch uses en/object-list-with-pathspec.) This is related to something I have long been wanting to see happen. Wait Nguyen for another round (2010-11-11). * en/object-list-with-pathspec (2010-09-20) 8 commits - Add testcases showing how pathspecs are handled with rev-list --objects - Make rev-list --objects work together with pathspecs - Move tree_entry_interesting() to tree-walk.c and export it - tree_entry_interesting(): remove dependency on struct diff_options - Convert struct diff_options to use struct pathspec - pathspec: cache string length when initializing pathspec - diff-no-index: use diff_tree_setup_paths() - Add struct pathspec (this branch is used by nd/struct-pathspec.) * tc/smart-http-post-redirect (2010-09-25) 1 commit (merged to 'next' on 2010-11-17 at 6478f7f) + smart-http: Don't change POST to GET when following redirect * en/rename-d-f (2010-09-08) 2 commits + merge-recursive: D/F conflicts where was_a_dir/file -> was_a_dir + t3509: Add rename + D/F conflict testcase that recursive strategy fails (this branch is used by en/merge-recursive.) * jl/fetch-submodule-recursive (2010-11-11) 3 commits - Submodules: Add the "fetchRecurseSubmodules" config option - Add the 'fetch.recurseSubmodules' config setting - fetch/pull: Add the --recurse-submodules option * tr/merge-unborn-clobber (2010-08-22) 1 commit - Exhibit merge bug that clobbers index&WT * ab/i18n (2010-10-07) 161 commits - po/de.po: complete German translation - po/sv.po: add Swedish translation - gettextize: git-bisect bisect_next_check "You need to" message - gettextize: git-bisect [Y/n] messages - gettextize: git-bisect bisect_replay + $1 messages - gettextize: git-bisect bisect_reset + $1 messages - gettextize: git-bisect bisect_run + $@ messages - gettextize: git-bisect die + eval_gettext messages - gettextize: git-bisect die + gettext messages - gettextize: git-bisect echo + eval_gettext message - gettextize: git-bisect echo + gettext messages - gettextize: git-bisect gettext + echo message - gettextize: git-bisect add git-sh-i18n - gettextize: git-stash drop_stash say/die messages - gettextize: git-stash "unknown option" message - gettextize: git-stash die + eval_gettext $1 messages - gettextize: git-stash die + eval_gettext $* messages - gettextize: git-stash die + eval_gettext messages - gettextize: git-stash die + gettext messages - gettextize: git-stash say + gettext messages - gettextize: git-stash echo + gettext message - gettextize: git-stash add git-sh-i18n - gettextize: git-submodule "blob" and "submodule" messages - gettextize: git-submodule "path not initialized" message - gettextize: git-submodule "[...] path is ignored" message - gettextize: git-submodule "Entering [...]" message - gettextize: git-submodule $errmsg messages - gettextize: git-submodule "Submodule change[...]" messages - gettextize: git-submodule "cached cannot be used" message - gettextize: git-submodule $update_module say + die messages - gettextize: git-submodule die + eval_gettext messages - gettextize: git-submodule say + eval_gettext messages - gettextize: git-submodule echo + eval_gettext messages - gettextize: git-submodule add git-sh-i18n - gettextize: git-pull "rebase against" / "merge with" messages - gettextize: git-pull "[...] not currently on a branch" message - gettextize: git-pull "You asked to pull" message - gettextize: git-pull split up "no candidate" message - gettextize: git-pull eval_gettext + warning message - gettextize: git-pull eval_gettext + die message - gettextize: git-pull die messages - gettextize: git-pull add git-sh-i18n - gettext docs: add "Testing marked strings" section to po/README - gettext docs: the Git::I18N Perl interface - gettext docs: the git-sh-i18n.sh Shell interface - gettext docs: the gettext.h C interface - gettext docs: add "Marking strings for translation" section in po/README - gettext docs: add a "Testing your changes" section to po/README - po/pl.po: add Polish translation - po/hi.po: add Hindi Translation - po/en_GB.po: add British English translation - po/de.po: add German translation - Makefile: only add gettext tests on XGETTEXT_INCLUDE_TESTS=YesPlease - gettext docs: add po/README file documenting Git's gettext - gettextize: git-am printf(1) message to eval_gettext - gettextize: git-am core say messages - gettextize: git-am "Apply?" message - gettextize: git-am clean_abort messages - gettextize: git-am cannot_fallback messages - gettextize: git-am die messages - gettextize: git-am eval_gettext messages - gettextize: git-am multi-line getttext $msg; echo - gettextize: git-am one-line gettext $msg; echo - gettextize: git-am add git-sh-i18n - gettext tests: add GETTEXT_POISON tests for shell scripts - gettext tests: add GETTEXT_POISON support for shell scripts - Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT - Makefile: add GNU_GETTEXT, set when we expect GNU gettext - gettextize: git-shortlog basic messages - gettextize: git-revert split up "could not revert/apply" message - gettextize: git-revert literal "me" messages - gettextize: git-revert "Your local changes" message - gettextize: git-revert basic messages - gettextize: git-notes "Refusing to %s notes in %s" message - gettextize: git-notes GIT_NOTES_REWRITE_MODE error message - gettextize: git-notes basic commands - gettextize: git-gc "Auto packing the repository" message - gettextize: git-gc basic messages - gettextize: git-describe basic messages - gettextize: git-clean clean.requireForce messages - gettextize: git-clean basic messages - gettextize: git-bundle basic messages - gettextize: git-archive basic messages - gettextize: git-status "renamed: " message - gettextize: git-status "Initial commit" message - gettextize: git-status "Changes to be committed" message - gettextize: git-status shortstatus messages - gettextize: git-status "nothing to commit" messages - gettextize: git-status basic messages - gettextize: git-push "prevent you from losing" message - gettextize: git-push basic messages - gettextize: git-tag tag_template message - gettextize: git-tag basic messages - gettextize: git-reset "Unstaged changes after reset" message - gettextize: git-reset reset_type_names messages - gettextize: git-reset basic messages - gettextize: git-rm basic messages - gettextize: git-mv "bad" messages - gettextize: git-mv basic messages - gettextize: git-merge "Wonderful" message - gettextize: git-merge "You have not concluded your merge" messages - gettextize: git-merge "Updating %s..%s" message - gettextize: git-merge basic messages - gettextize: git-log "--OPT does not make sense" messages - gettextize: git-log basic messages - gettextize: git-grep "--open-files-in-pager" message - gettextize: git-grep basic messages - gettextize: git-fetch split up "(non-fast-forward)" message - gettextize: git-fetch update_local_ref messages - gettextize: git-fetch formatting messages - gettextize: git-fetch basic messages - gettextize: git-diff basic messages - gettextize: git-commit advice messages - gettextize: git-commit "enter the commit message" message - gettextize: git-commit print_summary messages - gettextize: git-commit formatting messages - gettextize: git-commit "middle of a merge" message - gettextize: git-commit basic messages - gettextize: git-checkout "Switched to a .. branch" message - gettextize: git-checkout "HEAD is now at" message - gettextize: git-checkout describe_detached_head messages - gettextize: git-checkout: our/their version message - gettextize: git-checkout basic messages - gettextize: git-branch "(no branch)" message - gettextize: git-branch "git branch -v" messages - gettextize: git-branch "Deleted branch [...]" message - gettextize: git-branch "remote branch '%s' not found" message - gettextize: git-branch basic messages - gettextize: git-add refresh_index message - gettextize: git-add "remove '%s'" message - gettextize: git-add "pathspec [...] did not match" message - gettextize: git-add "Use -f if you really want" message - gettextize: git-add "no files added" message - gettextize: git-add basic messages - gettextize: git-clone "Cloning into" message - gettextize: git-clone basic messages - gettext tests: test message re-encoding under C - po/is.po: add Icelandic translation - gettext tests: mark a test message as not needing translation - gettext tests: test re-encoding with a UTF-8 msgid under Shell - gettext tests: test message re-encoding under Shell - gettext tests: add detection for is_IS.ISO-8859-1 locale - gettext tests: test if $VERSION exists before using it - gettextize: git-init "Initialized [...] repository" message - gettextize: git-init basic messages - gettext tests: skip lib-gettext.sh tests under GETTEXT_POISON - gettext tests: add GETTEXT_POISON=YesPlease Makefile parameter - gettext.c: use libcharset.h instead of langinfo.h when available - gettext.c: work around us not using setlocale(LC_CTYPE, "") - builtin.h: Include gettext.h - Makefile: use variables and shorter lines for xgettext - Makefile: tell xgettext(1) that our source is in UTF-8 - Makefile: provide a --msgid-bugs-address to xgettext(1) - Makefile: A variable for options used by xgettext(1) calls - gettext tests: locate i18n lib&data correctly under --valgrind - gettext: setlocale(LC_CTYPE, "") breaks Git's C function assumptions - gettext tests: rename test to work around GNU gettext bug - gettext: add infrastructure for translating Git with gettext - builtin: use builtin.h for all builtin commands - tests: use test_cmp instead of piping to diff(1) - t7004-tag.sh: re-arrange git tag comment for clarity It is getting ridiculously painful to keep re-resolving the conflicts with other topics in flight, even with the help with rerere. Needs a bit more minor work to get the basic code structure right. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-18 0:56 What's cooking in git.git (Nov 2010, #02; Wed, 17) Junio C Hamano @ 2010-11-18 14:00 ` Jakub Narebski 2010-11-18 17:54 ` Junio C Hamano 0 siblings, 1 reply; 9+ messages in thread From: Jakub Narebski @ 2010-11-18 14:00 UTC (permalink / raw) To: Junio C Hamano; +Cc: git, John 'Warthog9' Hawley, Thomas Rast Junio C Hamano <gitster@pobox.com> writes: > -------------------------------------------------- > [Graduated to "master"] > * bg/maint-gitweb-test-lib (2010-10-20) 1 commit > (merged to 'next' on 2010-11-05 at 0ead869) > + t/gitweb-lib: Don't pass constant to decode_utf8 > * jn/gitweb-test (2010-09-26) 4 commits > (merged to 'next' on 2010-11-05 at 90b3adf) > + gitweb/Makefile: Include gitweb/config.mak > + gitweb/Makefile: Add 'test' and 'test-installed' targets > + t/gitweb-lib.sh: Add support for GITWEB_TEST_INSTALLED > + gitweb: Move call to evaluate_git_version after evaluate_gitweb_config > (this branch is used by jh/gitweb-caching.) Thanks. Sidenote: recently sent gitweb: selectable configurations that change with each request practically reverts gitweb: Move call to evaluate_git_version after evaluate_gitweb_config Just FYI. > -------------------------------------------------- > [New Topics] > * gb/gitweb-remote-heads (2010-11-11) 11 commits > - git instaweb: enable remote_heads > - gitweb: group remote heads by remote > - gitweb: provide a routine to display (sub)sections > - gitweb: refactor repository URL printing > - gitweb: remotes view for a single remote > - gitweb: allow action specialization in page header > - gitweb: nagivation menu for tags, heads and remotes > - gitweb: separate heads and remotes lists > - gitweb: git_get_heads_list accepts an optional list of refs > - gitweb: introduce remote_heads feature > - gitweb: use fullname as hash_base in heads link > > Acked by Jakub. Will merge to next. Thanks. > * jn/gitweb-time-hires-comes-with-5.8 (2010-11-09) 1 commit > - gitweb: Time::HiRes is in core for Perl 5.8 > > Looked reasonable. Will merge to next. Thanks. With or without improvement to commit message? > -------------------------------------------------- > [Stalled] > * jh/gitweb-caching (2010-11-01) 4 commits > . gitweb: Minimal testing of gitweb caching > . gitweb: File based caching layer (from git.kernel.org) > . gitweb: add output buffering and associated functions > . gitweb: Prepare for splitting gitweb > > Temporarily ejected while I shuffled jn/gitweb-testing; will queue the > latest back in pu or perhaps in next. The advantage of 'gitweb: File based caching layer (from git.kernel.org)' is that it is tested in real-life on heavy load (assuming that git.kernel.org uses the same version as is/would be in pu/next). The disadvantage is that it is seriously messy code. Something that I wanted to improve in my rewrite. This is only minimal fixup. I am thinking about splitting main 'gitweb: File based caching layer (from git.kernel.org)' patch in two, separating moving test for $caching_enabled out of cache_fetch to separate commit (largest change to original J.H. submission), but leaving hardening "do 'cache.pl';" and replacing 0/1 valued $cache_enable with boolean valued $caching_enabled. Because currently new tests in t9501 and t9502 (examining status and output of gitweb with caching enabled) do not pass, I am thinking about adding new configuration know turning off "Generating..." page. BTW. should I forge J.H. signoffs, and add mine? > * tr/config-doc (2010-10-24) 2 commits > . Documentation: complete config list from other manpages > . Documentation: Move variables from config.txt to separate file > > This unfortunately heavily conflicts with patches in flight... Would creating a script for generating contents of 'Documentation: Move variables from config.txt to separate file', including it either in commit message or in comments, help this issue? There is also problem with 'Documentation: complete config list from other manpages' in that it needs (at least in one version) for all config sections to be marked as such (see discussion in thread). -- Jakub Narebski Poland ShadeHawk on #git ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-18 14:00 ` Jakub Narebski @ 2010-11-18 17:54 ` Junio C Hamano 2010-11-18 21:33 ` J.H. 2010-11-20 0:42 ` Jakub Narebski 0 siblings, 2 replies; 9+ messages in thread From: Junio C Hamano @ 2010-11-18 17:54 UTC (permalink / raw) To: Jakub Narebski; +Cc: git, John 'Warthog9' Hawley Jakub Narebski <jnareb@gmail.com> writes: > Sidenote: recently sent > > gitweb: selectable configurations that change with each request > > practically reverts > > gitweb: Move call to evaluate_git_version after evaluate_gitweb_config > > Just FYI. Hmph, will have to look at it again. >> * jn/gitweb-time-hires-comes-with-5.8 (2010-11-09) 1 commit >> - gitweb: Time::HiRes is in core for Perl 5.8 >> >> Looked reasonable. Will merge to next. > > Thanks. With or without improvement to commit message? I think what I pushed out has already been reworded. Please check. >> * jh/gitweb-caching (2010-11-01) 4 commits >> . gitweb: Minimal testing of gitweb caching >> . gitweb: File based caching layer (from git.kernel.org) >> . gitweb: add output buffering and associated functions >> . gitweb: Prepare for splitting gitweb >> >> Temporarily ejected while I shuffled jn/gitweb-testing; will queue the >> latest back in pu or perhaps in next. > > The advantage of 'gitweb: File based caching layer (from git.kernel.org)' > is that it is tested in real-life on heavy load (assuming that > git.kernel.org uses the same version as is/would be in pu/next). > > The disadvantage is that it is seriously messy code. Something that I > wanted to improve in my rewrite. This is only minimal fixup. Which is exactly what we want at this point (I want to release 1.7.4 by the end-of-year holidays, which means a feature-freeze will have to start soon). My understanding is that the serious messiness does not come from the caching layer. > I am thinking about splitting main 'gitweb: File based caching layer > (from git.kernel.org)' patch in two, separating moving test for > $caching_enabled out of cache_fetch to separate commit (largest change > to original J.H. submission), but leaving hardening "do 'cache.pl';" > and replacing 0/1 valued $cache_enable with boolean valued > $caching_enabled. > > Because currently new tests in t9501 and t9502 (examining status and > output of gitweb with caching enabled) do not pass, I am thinking > about adding new configuration know turning off "Generating..." page. > > BTW. should I forge J.H. signoffs, and add mine? Just ping him beforehand ;-) ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-18 17:54 ` Junio C Hamano @ 2010-11-18 21:33 ` J.H. 2010-11-20 0:42 ` Jakub Narebski 1 sibling, 0 replies; 9+ messages in thread From: J.H. @ 2010-11-18 21:33 UTC (permalink / raw) To: Junio C Hamano; +Cc: Jakub Narebski, git >> I am thinking about splitting main 'gitweb: File based caching layer >> (from git.kernel.org)' patch in two, separating moving test for >> $caching_enabled out of cache_fetch to separate commit (largest change >> to original J.H. submission), but leaving hardening "do 'cache.pl';" >> and replacing 0/1 valued $cache_enable with boolean valued >> $caching_enabled. >> >> Because currently new tests in t9501 and t9502 (examining status and >> output of gitweb with caching enabled) do not pass, I am thinking >> about adding new configuration know turning off "Generating..." page. >> >> BTW. should I forge J.H. signoffs, and add mine? > > Just ping him beforehand ;-) I hadn't done a signoff as Jakub asked me to investigate some breakage in the testing infrastructure he had put together. Sadly I haven't been able to duplicate it, and I haven't been able to catch him online to try and figure out what the problem was exactly. That said there's already a way to disable the Generating... page so I'm not sure why an extra, and different, mechanism to disable it is needed... - John 'Warthog9' Hawley ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-18 17:54 ` Junio C Hamano 2010-11-18 21:33 ` J.H. @ 2010-11-20 0:42 ` Jakub Narebski 2010-11-24 1:45 ` J.H. 1 sibling, 1 reply; 9+ messages in thread From: Jakub Narebski @ 2010-11-20 0:42 UTC (permalink / raw) To: Junio C Hamano; +Cc: git, John 'Warthog9' Hawley On Thu, 18 Nov 2010, Junio C Hamano wrote: > Jakub Narebski <jnareb@gmail.com> writes: > >> Sidenote: recently sent >> >> gitweb: selectable configurations that change with each request >> >> practically reverts >> >> gitweb: Move call to evaluate_git_version after evaluate_gitweb_config >> >> Just FYI. > > Hmph, will have to look at it again. A bit of history: * c2394fe (gitweb: Put all per-connection code in run() subroutine, 2010-05-07) a0446e7 (gitweb: Add support for FastCGI, using CGI::Fast, 2010-05-07) those added run() and run_request(), separating "main" code of gitweb from code that is run once per requect (once per connection). * 869d588 (gitweb: Move evaluate_gitweb_config out of run_request, 2010-07-05) among others moved evaluate_gitweb_config out of run_request() to run(), because I thought that gitweb config that changes per-request is vanishingly rare: it isn't (e.g. gitolite has parts that are per-request). evaluate_git_version was moved *together* with evaluate_gitweb_config. * 7f425db (gitweb: allow configurations that change with each request, 2010-07-30) partially reverted commit 869d58... but forgot to move evaluate_git_version when moving evaluate_gitweb_config. This didn't matter in most cases... except for test suite. * 8ff76f4 (gitweb: Move call to evaluate_git_version after evaluate_gitweb_config, 2010-09-26) fixed that issue, in a simplest way, by moving evaluate_git_version after evaluate_gitweb_config. + 0ac5f64 (gitweb: selectable configurations that change with each request, 2010-11-18) in my 'gitweb/web' branch solves the issue in other way: evaluate_gitweb_config is run first time outside of run_request(), and on subsequent requests in run_request() (by default). So evaluate_gitweb_config is back before evaluate_git_version. Hence there is no need to move evaluate_git_version. HTH. >>> * jn/gitweb-time-hires-comes-with-5.8 (2010-11-09) 1 commit >>> - gitweb: Time::HiRes is in core for Perl 5.8 >>> >>> Looked reasonable. Will merge to next. >> >> Thanks. With or without improvement to commit message? > > I think what I pushed out has already been reworded. Please check. I have checked the version in 'pu' and it looks good. Thanks. >>> * jh/gitweb-caching (2010-11-01) 4 commits >>> . gitweb: Minimal testing of gitweb caching >>> . gitweb: File based caching layer (from git.kernel.org) >>> . gitweb: add output buffering and associated functions >>> . gitweb: Prepare for splitting gitweb >>> >>> Temporarily ejected while I shuffled jn/gitweb-testing; will queue the >>> latest back in pu or perhaps in next. >> >> The advantage of 'gitweb: File based caching layer (from git.kernel.org)' >> is that it is tested in real-life on heavy load (assuming that >> git.kernel.org uses the same version as is/would be in pu/next). >> >> The disadvantage is that it is seriously messy code. Something that I >> wanted to improve in my rewrite. This is only minimal fixup. > > Which is exactly what we want at this point (I want to release 1.7.4 by > the end-of-year holidays, which means a feature-freeze will have to start > soon). My understanding is that the serious messiness does not come from > the caching layer. Well... the capturing, caching and actual gitweb operations are quite intermixed in J.H. patch. I wanted to separate those issues, and have them modularized in my rewrite[1], making it easy to use other caching engine (tested with Cache::FileCache from Cache::Cache). On the other hand intermixing allows capturing directly to cache file (although it is only since v7), something that would be more difficult in my rewrite. The Perl code of J.H. patch does not follow style of other parts of gitweb, doesn't follow best practices (like e.g. using lexical filehandles instead of globs), does include some code repetitions... all of which made me attempt rewrite rather than fix it. [1] http://repo.or.cz/w/git/jnareb-git.git http://github.com/jnareb/git 'gitweb/cache-kernel-pu' branch BTW. I didn't get any responses to "[RFC] Implementing gitweb output caching - issues to solve". -- Jakub Narebski Poland ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-20 0:42 ` Jakub Narebski @ 2010-11-24 1:45 ` J.H. 2010-11-24 17:13 ` Junio C Hamano 2010-11-24 21:26 ` Jakub Narebski 0 siblings, 2 replies; 9+ messages in thread From: J.H. @ 2010-11-24 1:45 UTC (permalink / raw) To: Jakub Narebski; +Cc: Junio C Hamano, git >>>> * jh/gitweb-caching (2010-11-01) 4 commits >>>> . gitweb: Minimal testing of gitweb caching >>>> . gitweb: File based caching layer (from git.kernel.org) >>>> . gitweb: add output buffering and associated functions >>>> . gitweb: Prepare for splitting gitweb >>>> >>>> Temporarily ejected while I shuffled jn/gitweb-testing; will queue the >>>> latest back in pu or perhaps in next. >>> >>> The advantage of 'gitweb: File based caching layer (from git.kernel.org)' >>> is that it is tested in real-life on heavy load (assuming that >>> git.kernel.org uses the same version as is/would be in pu/next). >>> >>> The disadvantage is that it is seriously messy code. Something that I >>> wanted to improve in my rewrite. This is only minimal fixup. >> >> Which is exactly what we want at this point (I want to release 1.7.4 by >> the end-of-year holidays, which means a feature-freeze will have to start >> soon). My understanding is that the serious messiness does not come from >> the caching layer. > > Well... the capturing, caching and actual gitweb operations are quite > intermixed in J.H. patch. I'm not sure how they can be any less intermixed. The biggest problem is getting the code launched into the caching engine, which gitweb in general has no good means of dealing with. Now that said, since I switched how I'm capturing the output the diff into the main gitweb code is quite small, and easily bypassed. The only place there the code gets really intermixed at all is in the special case of binary files, and that's just because the entirety of that code in gitweb.perl assumes it can dump the data straight to the client, which I point out has a whole slew of disadvantages, not the least of which is the client has no idea how big the file should be and is accepting bits blindly until the stream closes. > I wanted to separate those issues, and have > them modularized in my rewrite[1], making it easy to use other caching engine > (tested with Cache::FileCache from Cache::Cache). On the other hand > intermixing allows capturing directly to cache file (although it is only > since v7), something that would be more difficult in my rewrite. While I don't disagree, being able to support other caching systems would be nice, we have this now, it's tested and it works. I'd argue this is a step 1, step 2 case at this point. I'd also point out that while caching the output has been exceedingly useful, and has proven to be fast, I can definitely see benefits to caching individual data pieces, however to do that the output and data accessing bits in gitweb really need to be re-written, and we should honestly move to some sort of templating engine. That said, that's not part of this patch series anyway. > The Perl code of J.H. patch does not follow style of other parts of gitweb, > doesn't follow best practices (like e.g. using lexical filehandles instead > of globs), does include some code repetitions... all of which made me > attempt rewrite rather than fix it. Concerning the lexical filehandles vs. globs, I can not find any documentation anywhere as to why you would prefer one over the other. Considering that the handles were being use globally the lexical way made sense (and was the way I wrote it 4 years ago). I've already done the quick search and replace to move them over to globs. Speaking to code repetitions the only thing that I really had repeated was the check for if the action involved a binary file, I've added a function that checks for that now. Beyond that, I'm not really seeing anything. > BTW. I didn't get any responses to "[RFC] Implementing gitweb output caching > - issues to solve". Because you sent that while I was in Boston at Kernel Summit and LPC. It got lost in my inbox, and I've only gotten far enough in the last day or so to start digging back into the gitweb stuff. I'm not sure how, but you have perfect timing in every time you send out stuff I'm in the middle of a big messy trip. Clearly I should just travel less ;-) I should have fixes / cleanups and further commentary soon. I've also got some changes that are a combination of requests from the gittogether and from irc that I'll be adding in. I'm currently working from on top of Jakub's last tree, though I've got some questions about his reasoning on a few things now that I've been digging into it. - John 'Warthog9' Hawley ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-24 1:45 ` J.H. @ 2010-11-24 17:13 ` Junio C Hamano 2010-11-24 21:30 ` Jakub Narebski 2010-11-24 21:26 ` Jakub Narebski 1 sibling, 1 reply; 9+ messages in thread From: Junio C Hamano @ 2010-11-24 17:13 UTC (permalink / raw) To: J.H.; +Cc: Jakub Narebski, git "J.H." <warthog9@kernel.org> writes: > While I don't disagree, being able to support other caching systems > would be nice, we have this now, it's tested and it works. I'd argue > this is a step 1, step 2 case at this point. I would have to agree; getting some cache layer that is known to work (you are battle testing your updates on a busy site of yours as you develop, right?) early, quick and dirty with minimum changes, is more beneficial than waiting for a large rewrite thats "gets it perfect this time". > I'm currently working from on top of Jakub's last tree, though I've got > some questions about his reasoning on a few things now that I've been > digging into it. Thanks both for keeping the ball rolling. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-24 17:13 ` Junio C Hamano @ 2010-11-24 21:30 ` Jakub Narebski 0 siblings, 0 replies; 9+ messages in thread From: Jakub Narebski @ 2010-11-24 21:30 UTC (permalink / raw) To: Junio C Hamano; +Cc: J.H., git On Wed, 24 Nov 2010, Junio C Hamano wrote: > "J.H." <warthog9@kernel.org> writes: > > > While I don't disagree, being able to support other caching systems > > would be nice, we have this now, it's tested and it works. I'd argue > > this is a step 1, step 2 case at this point. > > I would have to agree; getting some cache layer that is known to work (you > are battle testing your updates on a busy site of yours as you develop, > right?) early, quick and dirty with minimum changes, is more beneficial > than waiting for a large rewrite thats "gets it perfect this time". I also agree, that's why I'd like to go the "minimal fixups" route, where those minimal fixups are about caching being robust (loading cache.pl, passing minimal tests), not penalizing non-cached case (moving check for $caching_enabled out of cache_fetch), and make it possible to move to better solution / other caching engines in the future while maintaining backward copmatibility (configuration is API; $caching_enabled, perhaps also $cache (is 'cache.pl') and %cache_options). > > I'm currently working from on top of Jakub's last tree, though I've got > > some questions about his reasoning on a few things now that I've been > > digging into it. > > Thanks both for keeping the ball rolling. > -- Jakub Narebski Poland ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Nov 2010, #02; Wed, 17) 2010-11-24 1:45 ` J.H. 2010-11-24 17:13 ` Junio C Hamano @ 2010-11-24 21:26 ` Jakub Narebski 1 sibling, 0 replies; 9+ messages in thread From: Jakub Narebski @ 2010-11-24 21:26 UTC (permalink / raw) To: J.H.; +Cc: Junio C Hamano, git On Wed, 24 Nov 2010, J.H. wrote: Note: "rewrite" is what I have in 'gitweb/cache-kernel-pu', "fixup" is what I have in 'gitweb/gitweb-ml-v7'. http://repo.or.cz/w/git/jnareb-git.git https://github.com/jnareb/git >>>>> * jh/gitweb-caching (2010-11-01) 4 commits >>>>> . gitweb: Minimal testing of gitweb caching >>>>> . gitweb: File based caching layer (from git.kernel.org) >>>>> . gitweb: add output buffering and associated functions >>>>> . gitweb: Prepare for splitting gitweb >>>>> >>>>> Temporarily ejected while I shuffled jn/gitweb-testing; will queue the >>>>> latest back in pu or perhaps in next. >>>> >>>> The advantage of 'gitweb: File based caching layer (from git.kernel.org)' >>>> is that it is tested in real-life on heavy load (assuming that >>>> git.kernel.org uses the same version as is/would be in pu/next). >>>> >>>> The disadvantage is that it is seriously messy code. Something that I >>>> wanted to improve in my rewrite. This is only minimal fixup. >>> >>> Which is exactly what we want at this point (I want to release 1.7.4 by >>> the end-of-year holidays, which means a feature-freeze will have to start >>> soon). My understanding is that the serious messiness does not come from >>> the caching layer. >> >> Well... the capturing, caching and actual gitweb operations are quite >> intermixed in J.H. patch. > > I'm not sure how they can be any less intermixed. The biggest problem > is getting the code launched into the caching engine, which gitweb in > general has no good means of dealing with. Now that said, since I > switched how I'm capturing the output the diff into the main gitweb code > is quite small, and easily bypassed. It is not only matter of having cache-specific bits in gitweb.perl, but also about using gitweb-specific bits in cache.pl: anything that prevents turning cache.pl into proper Perl module (GitwebCache.pm aka GitwebCache, or GitwebCache::CacheOutput, or similar), and using alternate caching engine (e.g. memcached-based). Eliminating cache-specific bits are what would makes it possible to switch to other caching engine. Eliminating gitweb-specific bits is what would make unit-testing possible (like in my rewrite). In the case of cache-specific bits in gitweb.perl itself, there are four issues where caching code needs to be added: * configuration (turning caching on, configuring cache engine) * dispatch (run action, or get output from cache) * special cases and limitations (varying mimetype, non-cacheable actions, error handling) * notification (how old page is, or when it was generated) > The only place there the code gets really intermixed at all is in the > special case of binary files, and that's just because the entirety of > that code in gitweb.perl assumes it can dump the data straight to the > client, which I point out has a whole slew of disadvantages, not the > least of which is the client has no idea how big the file should be and > is accepting bits blindly until the stream closes. The special case is not *binary* files: if you do it right then you have to apply layers (':utf8' vs ':raw') only when capturing output; what you have captured is bytes, and you can dump data from cache in ':raw'/binary mode. The transformation was already done. The problem is *large* files; they are binary, but it is not binary-ness that is the problem. The problem is that output of 'blob_plain' and especially of 'snapshot' action can be large file, and that is why you want to avoid capturing output to memory. That's a good idea, but it makes implementing caching in gitweb more difficult. But in case of cache.pl, where capturing and caching are intermixed the binary-ness parts of gitweb.perl diff are not really necessary: just capture directly to cache entry file, and apply PerlIO layers appropriately. BTW. in the case of 'blob_plain' output we could use 'git cat-file --batch' to get its contents length together with actual data dumped to client, though it would make code a bit more complicated. Unfortunately the real problem is with 'snapshot', and we cannot get content length upfront here, especially in the case when we use external compressor (e.g. 'tar.gz'/'tgz' format). >> I wanted to separate those issues, and have >> them modularized in my rewrite[1], making it easy to use other caching engine >> (tested with Cache::FileCache from Cache::Cache). On the other hand >> intermixing allows capturing directly to cache file (although it is only >> since v7), something that would be more difficult in my rewrite. > > While I don't disagree, being able to support other caching systems > would be nice, we have this now, it's tested and it works. I'd argue > this is a step 1, step 2 case at this point. Well, to be able to support other caching engines and perhaps other capturing engines in the future we need to plan caching infrastructure so that it is possible. I'd like very much to separate turning caching on from selecting caching engine: something that you tried to implement with $cache_enable being multi-valued (0, 1, possible other values), and what I implemented in my rewrite with boolean $caching_enabled and $cache + $capture variables. In my minimal fixup in v7.1 and v7.2 I changed $cache_enable to $caching_enabled to make (possible) transition to my rewrite easier, but now I think that I should have introduced at least $cache configuration variable too. BTW. what do you think about putting variables configuring cache (except $caching_enabled and $cache) to %cache_options hash? > > I'd also point out that while caching the output has been exceedingly > useful, and has proven to be fast, I can definitely see benefits to > caching individual data pieces, however to do that the output and data > accessing bits in gitweb really need to be re-written, and we should > honestly move to some sort of templating engine. That said, that's not > part of this patch series anyway. Well, there is always Gitalist[1], written using Catalyst MVC framework, based initially on old (pre-incorporation) gitweb code ;-) [1] http://www.gitalist.com/ https://github.com/broquaint/Gitalist >> The Perl code of J.H. patch does not follow style of other parts of gitweb, >> doesn't follow best practices (like e.g. using lexical filehandles instead >> of globs), does include some code repetitions... all of which made me >> attempt rewrite rather than fix it. > > Concerning the lexical filehandles vs. globs, I can not find any > documentation anywhere as to why you would prefer one over the other. Some documentation about "Modern Perl" practices: * http://www.onyxneon.com/books/modern_perl/index.html (free PDF download) * http://perl-begin.org/tutorials/bad-elements/#open-function-style * http://perlcritic.com/ (Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles) The problem with globs (e.g. using open(cacheFile, '<', "$fullhashpath"); it has additional stylistic problem that it doesn't use ALLCAPS name to make it easier to see that you use globs) is that they are *global* variables, and therefore the usual problems with actions at distance. In the case of cache.pl, which is not meant as generic caching module (at least in current form in v7+), and therefore should not conflict with anything, it is more of maintenance burden. Using lexical filehandles has the additional advantage that if filehandle falls out of scope, the file would be closed automaticaly. > Considering that the handles were being use globally the lexical way > made sense (and was the way I wrote it 4 years ago). I've already done > the quick search and replace to move them over to globs. I guess s/to globs/to lexicals/ > > Speaking to code repetitions the only thing that I really had repeated > was the check for if the action involved a binary file, I've added a > function that checks for that now. Beyond that, I'm not really seeing > anything. Wouldn't it be better instead of separating _check_ (I guess misnamed is_binary() ;-)), to refactor the act of dumping possibly large file directly to browser into separate subroutine, named e.g. dump_file, or print_file, or dump_fd? It has the additional advantage that it would make it possibly to improve it in the future e.g. to use code like in File::Slurp::spew. I see some code repetition in cache.pl / cache.pm >> BTW. I didn't get any responses to "[RFC] Implementing gitweb output caching >> - issues to solve". > > Because you sent that while I was in Boston at Kernel Summit and LPC. > It got lost in my inbox, and I've only gotten far enough in the last day > or so to start digging back into the gitweb stuff. I'm not sure how, > but you have perfect timing in every time you send out stuff I'm in the > middle of a big messy trip. Clearly I should just travel less ;-) Sorry about that. > I should have fixes / cleanups and further commentary soon. I've also > got some changes that are a combination of requests from the gittogether > and from irc that I'll be adding in. Thanks a lot. > I'm currently working from on top of Jakub's last tree, though I've got > some questions about his reasoning on a few things now that I've been > digging into it. You mean 'gitweb/gitweb-ml-v7', aka "[RFC/PATCHv7.2 0/4] Gitweb caching v7.2" http://thread.gmane.org/gmane.comp.version-control.git/160147/focus=161368 Looking forward to your questions. BTW. should I send comment about style, or should cleanup be left to be done in-tree, to have caching in gitweb in next git version? -- Jakub Narebski Poland ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-11-24 21:31 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-18 0:56 What's cooking in git.git (Nov 2010, #02; Wed, 17) Junio C Hamano 2010-11-18 14:00 ` Jakub Narebski 2010-11-18 17:54 ` Junio C Hamano 2010-11-18 21:33 ` J.H. 2010-11-20 0:42 ` Jakub Narebski 2010-11-24 1:45 ` J.H. 2010-11-24 17:13 ` Junio C Hamano 2010-11-24 21:30 ` Jakub Narebski 2010-11-24 21:26 ` Jakub Narebski
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).