What's cooking in git.git (Dec 2017, #01; Mon, 4)
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.
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
--------------------------------------------------
[New Topics]
* ab/simplify-perl-makefile (2017-12-04) 1 commit
- Makefile: replace perl/Makefile.PL with simple make rules
The build procedure for perl/ part has been greatly simplified by weaning ourselves off of MakeMaker.
* cc/object-filtering-typofix (2017-12-04) 1 commit
- list-objects-filter-options: fix 'keword' typo in comment
(this branch uses jh/object-filtering; is tangled with jh/fsck-promisors and jh/partial-clone.)
Typofix for a topic already in 'next'.
JeffH said that jh/object-filtering needs further polishing a bit before graduating to 'master', so it would be appreciated if this can also be rolled into such an incremental update.
* cc/skip-to-optional-val (2017-12-04) 4 commits
- diff: use skip_to_optional_val_default()
- diff: use skip_to_optional_val()
- index-pack: use skip_to_optional_val()
- git-compat-util: introduce skip_to_optional_val()
Introduce a helper to simplify code to parse a common pattern that expects either "--key" or "--key=<something>".
This may want a final reroll to make it harder to misuse by allowing NULL at the valp part of the argument. cf. <[email protected]> cf. <[email protected]>
* lb/rebase-i-short-command-names (2017-12-04) 9 commits
- t3404: add test case for abbreviated commands
- rebase -i: learn to abbreviate command names
- rebase -i -x: add exec commands via the rebase--helper
- rebase -i: update functions to use a flags parameter
- rebase -i: replace reference to sha1 with oid
- rebase -i: refactor transform_todo_ids
- rebase -i: set commit to null in exec commands
- Documentation: use preferred name for the 'todo list' script
- Documentation: move rebase.* configs to new file
Allow a single-letter command name in the "rebase -i" todo list.
This may want a final reroll to avoid adding new reference to insn where todo is the more modern term, among other minor things. cf. <[email protected]>
* ra/prompt-eread-fix (2017-12-04) 2 commits
- git-prompt: fix reading files with windows line endings
- git-prompt: make __git_eread intended use explicit
Update the shell prompt script (in contrib/) to strip trailing CR from strings read from various "state" files.
Proposed log messages of both commits may need small fixes. cf. <[email protected]> cf. <alpine.DEB.2.21.1.1712041516280.98586@virtualbox>
* ds/for-each-file-in-obj-micro-optim (2017-12-04) 1 commit
- sha1_file: use strbuf_add() instead of strbuf_addf()
The code to iterate over loose object files got optimized.
Will merge to 'next'.
--------------------------------------------------
[Stalled]
* jc/merge-symlink-ours-theirs (2017-09-26) 1 commit
- merge: teach -Xours/-Xtheirs to symbolic link merge
"git merge -Xours/-Xtheirs" learned to use our/their version when resolving a conflicting updates to a symbolic link.
Needs review.
* mg/merge-base-fork-point (2017-09-17) 3 commits
- merge-base: find fork-point outside partial reflog
- merge-base: return fork-point outside reflog
- t6010: test actual test output
"merge-base --fork-point $branch $commit" is used to guess on which commit among the commits that were once at the tip of the $branch the $commit was built on top of, and it learns these historical tips from the reflog of the $branch. When the true fork-point is lost due to pruning of old reflog entries, the command does not give any output, because it has no way to guess correctly and does not want to mislead the user with a wrong guess.
The command has been updated to give the best but not known to be correct guess, based on a hope that a merge-base between $commit and a virtual merge across all the reflog entries that still are available for $branch may still be a closer to the true fork-point than the merge-base between $commit and the current tip of the $branch.
This may have to be offered by an additional option, to allow the users that are prepared to see a potentially incorrect guess to opt into the feature, without affecting the current callers that may not be prepared to accept a guess that is not known to be correct.
What's the doneness of this one?
* jk/drop-ancient-curl (2017-08-09) 5 commits
- http: #error on too-old curl
- curl: remove ifdef'd code never used with curl >=7.19.4
- http: drop support for curl < 7.19.4
- http: drop support for curl < 7.16.0
- http: drop support for curl < 7.11.1
Some code in http.c that has bitrot is being removed.
Expecting a reroll.
* mk/use-size-t-in-zlib (2017-08-10) 1 commit
. zlib.c: use size_t for size
The wrapper to call into zlib followed our long tradition to use "unsigned long" for sizes of regions in memory, which have been updated to use "size_t".
Needs resurrecting by making sure the fix is good and still applies (or adjusted to today's codebase).
* mg/status-in-progress-info (2017-05-10) 2 commits
- status --short --inprogress: spell it as --in-progress
- status: show in-progress info for short status
"git status" learns an option to report various operations (e.g. "merging") that the user is in the middle of.
cf. <[email protected]>
* nd/worktree-move (2017-04-20) 6 commits
- worktree remove: new command
- worktree move: refuse to move worktrees with submodules
- worktree move: accept destination as directory
- worktree move: new command
- worktree.c: add update_worktree_location()
- worktree.c: add validate_worktree()
"git worktree" learned move and remove subcommands.
Expecting a reroll.
cf. <[email protected]>
cf. <[email protected]> cf. <[email protected]>
--------------------------------------------------
[Cooking]
* en/merge-recursive-icase-removal (2017-11-27) 1 commit
- merge-recursive: ignore_case shouldn't reject intentional removals
The code internal to the recursive merge strategy was not fully prepared to see a path that is renamed to try overwriting another path that is only different in case on case insensitive systems. This does not matter in the current code, but will start to matter once the rename detection logic starts taking hints from nearby paths moving to some directory and moves a new path along with them.
* gk/tracing-optimization (2017-11-27) 3 commits
- SQUASH??? compilation fix-up
- trace: improve performance while category is disabled
- trace: remove trace key normalization
The tracing infrastructure has been optimized for cases where no tracing is requested.
* pc/submodule-helper (2017-11-26) 1 commit
- submodule--helper.c: i18n: add a missing space in message
A message fix.
Will merge to 'next'.
* tb/check-crlf-for-safe-crlf (2017-11-27) 1 commit
- convert: tighten the safe autocrlf handling
The "safe crlf" check incorrectly triggered for contents that does not use CRLF as line endings, which has been corrected.
Will merge to 'next'.
* tg/t-readme-updates (2017-11-27) 2 commits
- t/README: document test_cmp_rev
- t/README: remove mention of adding copyright notices
Developer doc updates.
Will merge to 'next'.
* cc/require-tcl-tk-for-build (2017-11-29) 2 commits
- travis-ci: avoid new tcl/tk build requirement
- Makefile: check that tcl/tk is installed
A first-time builder of Git may have installed neither tclsh nor msgfmt, in which case git-gui and gitk part will fail and break the build. As a workaround, refuse to run a build when tclsh is not installed and NO_TCLTK is not set.
Undecided.
I still feel that requring tclsh to be installed, with or without "escape hatch" for experts, may be too heavy-handed.
* mk/http-backend-content-length (2017-11-27) 4 commits
- SQUASH???
- t5560-http-backend-noserver.sh: add CONTENT_LENGTH cases
- SQUASH???
- http-backend: respect CONTENT_LENGTH as specified by rfc3875
The http-backend (used for smart-http transport) used to slurp the whole input until EOF, without paying attention to CONTENT_LENGTH that is supplied in the environment and instead expecting the Web server to close the input stream. This has been fixed.
Expecting a reroll.
Suggested fixes to be used when rerolling is queued, but I'd prefer _not_ squashing them myself.
* fk/sendmail-from-path (2017-11-28) 1 commit
- git-send-email: honor $PATH for sendmail binary
"git send-email" tries to see if the sendmail program is available in /usr/lib and /usr/sbin; extend the list of locations to be checked to also include directories on $PATH.
Will merge to 'next'.
* jk/no-optional-locks (2017-11-27) 1 commit
- git-status.txt: mention --no-optional-locks
Doc update for a feature available in Git v2.14 and upwards.
* jt/diff-anchored-patience (2017-11-28) 1 commit
- diff: support anchoring line(s)
"git diff" learned a variant of the "--patience" algorithm, to which the user can specify which 'unique' line to be used as anchoring points.
* ks/doc-checkout-previous (2017-11-28) 1 commit
- Doc/checkout: checking out using @{-N} can lead to detached state
@{-N} in "git checkout @{-N}" may refer to a detached HEAD state, but the documentation was not clear about it, which has been fixed.
Will merge to 'next'.
* en/rename-directory-detection (2017-11-21) 33 commits
- merge-recursive: ensure we write updates for directory-renamed file
- merge-recursive: avoid spurious rename/rename conflict from dir renames
- directory rename detection: new testcases showcasing a pair of bugs
- merge-recursive: fix remaining directory rename + dirty overwrite cases
- merge-recursive: fix overwriting dirty files involved in renames
- merge-recursive: avoid clobbering untracked files with directory renames
- merge-recursive: apply necessary modifications for directory renames
- merge-recursive: when comparing files, don't include trees
- merge-recursive: check for file level conflicts then get new name
- merge-recursive: add computation of collisions due to dir rename & merging
- merge-recursive: add a new hashmap for storing file collisions
- merge-recursive: check for directory level conflicts
- merge-recursive: add get_directory_renames()
- merge-recursive: add a new hashmap for storing directory renames
- merge-recursive: split out code for determining diff_filepairs
- merge-recursive: make !o->detect_rename codepath more obvious
- merge-recursive: fix leaks of allocated renames and diff_filepairs
- merge-recursive: introduce new functions to handle rename logic
- merge-recursive: move the get_renames() function
- directory rename detection: tests for handling overwriting dirty files
- directory rename detection: tests for handling overwriting untracked files
- directory rename detection: miscellaneous testcases to complete coverage
- directory rename detection: testcases exploring possibly suboptimal merges
- directory rename detection: more involved edge/corner testcases
- directory rename detection: testcases checking which side did the rename
- directory rename detection: files/directories in the way of some renames
- directory rename detection: partially renamed directory testcase/discussion
- directory rename detection: testcases to avoid taking detection too far
- directory rename detection: directory splitting testcases
- directory rename detection: basic testcases
- merge-recursive: add explanation for src_entry and dst_entry
- merge-recursive: fix logic ordering issue
- Tighten and correct a few testcases for merging and cherry-picking
Rename detection logic in "diff" family that is used in "merge" has learned to guess when all of x/a, x/b and x/c have moved to z/a, z/b and z/c, it is likely that x/d added in the meantime would also want to move to z/d by taking the hint that the entire directory 'x' moved to 'z'.
Needs review.
* ac/complete-pull-autostash (2017-11-22) 1 commit (merged to 'next' on 2017-11-27 at 802d204eda)
+ completion: add --autostash and --no-autostash to pull
The shell completion (in contrib/) learned that "git pull" can take the "--autostash" option.
Will merge to 'master'.
* cc/git-packet-pm (2017-11-22) 2 commits
(merged to 'next' on 2017-11-27 at 1527ab3519)
+ Git/Packet.pm: use 'if' instead of 'unless'
+ Git/Packet: clarify that packet_required_key_val_read allows EOF
Code clean-up.
Will merge to 'master'.
* jn/reproducible-build (2017-11-22) 3 commits
(merged to 'next' on 2017-11-27 at 6ae6946f8c)
+ Merge branch 'jn/reproducible-build' of ../git-gui into jn/reproducible-build
+ git-gui: sort entries in optimized tclIndex
+ generate-cmdlist: avoid non-deterministic output
The build procedure has been taught to avoid some unnecessary instability in the build products.
Will merge to 'master'.
* jt/submodule-tests-cleanup (2017-11-22) 1 commit (merged to 'next' on 2017-11-27 at 5f0e4bcde1)
+ Tests: clean up submodule recursive helpers
Further test clean-up.
Will merge to 'master'.
* rd/man-prune-progress (2017-11-22) 1 commit (merged to 'next' on 2017-11-27 at 1680e6a2f5)
+ prune: add "--progress" to man page and usage msg
Doc update.
Will merge to 'master'.
* rd/man-reflog-add-n (2017-11-22) 1 commit (merged to 'next' on 2017-11-27 at eacb065aa6)
+ doc: add missing "-n" (dry-run) option to reflog man page
Doc update.
Will merge to 'master'.
* ph/stash-save-m-option-fix (2017-11-24) 1 commit (merged to 'next' on 2017-11-27 at 96eadf9372)
+ stash: learn to parse -m/--message like commit does
In addition to "git stash -m message", the command learned to accept "git stash -mmessage" form.
Will merge to 'master'.
* ra/decorate-limit-refs (2017-11-22) 1 commit
- log: add option to choose which refs to decorate
The tagnames "git log --decorate" uses to annotate the commits can now be limited to subset of available refs with the two additional options, --decorate-refs[-exclude]=<pattern>.
Will merge to 'next'.
* rd/doc-notes-prune-fix (2017-11-22) 1 commit (merged to 'next' on 2017-11-27 at 4a657474ee)
+ notes: correct 'git notes prune' options to '[-n] [-v]'
Doc update.
Will merge to 'master'.
* tg/deprecate-stash-save (2017-11-22) 1 commit
(merged to 'next' on 2017-11-27 at 6bcb61b267)
+ doc: prefer 'stash push' over 'stash save'
Doc update.
Will merge to 'master'.
* ab/pcre2-grep (2017-11-24) 2 commits
- grep: fix segfault under -P + PCRE2 <=10.30 + (*NO_JIT)
- test-lib: add LIBPCRE1 & LIBPCRE2 prerequisites
"git grep" compiled with libpcre2 sometimes triggered a segfault, which is being fixed.
Will merge to 'next'.
* jc/receive-pack-hook-doc (2017-11-24) 1 commit
- hooks doc: clarify when receive-pack invokes its hooks
Doc update.
Will merge to 'next'.
* sb/diff-blobfind (2017-11-24) 1 commit
- diff: add a new diffcore transformation to find a specific blob
"git diff" family of commands learned --blobfind=<object-name> that allows you to limit the output only to a change that involves the named blob object (either changing the contents from or to it).
Needs review.
* sp/doc-info-attributes (2017-11-24) 1 commit (merged to 'next' on 2017-11-27 at 4e509c2d25)
+ doc: Mention info/attributes in gitrepository-layout
Doc update.
Will merge to 'master'.
* tg/worktree-create-tracking (2017-11-27) 6 commits
- add worktree.guessRemote config option
- worktree: add --guess-remote flag to add subcommand
- worktree: make add <path> <branch> dwim
- worktree: add --[no-]track option to the add subcommand
- worktree: add can be created from any commit-ish
- checkout: factor out functions to new lib file
The way "git worktree add" determines what branch to create from where and checkout in the new worktree has been updated a bit.
* cc/perf-run-config (2017-09-24) 9 commits
(merged to 'next' on 2017-11-27 at d75a2469eb)
+ perf: store subsection results in "test-results/$GIT_PERF_SUBSECTION/"
+ perf/run: show name of rev being built
+ perf/run: add run_subsection()
+ perf/run: update get_var_from_env_or_config() for subsections
+ perf/run: add get_subsections()
+ perf/run: add calls to get_var_from_env_or_config()
+ perf/run: add GIT_PERF_DIRS_OR_REVS
+ perf/run: add get_var_from_env_or_config()
+ perf/run: add '--config' option to the 'run' script
Will merge to 'master'.
* pw/sequencer-in-process-commit (2017-11-24) 9 commits
- t3512/t3513: remove KNOWN_FAILURE_CHERRY_PICK_SEES_EMPTY_COMMIT=1
- sequencer: try to commit without forking 'git commit'
- sequencer: load commit related config
- sequencer: simplify adding Signed-off-by: trailer
- commit: move print_commit_summary() to libgit
- commit: move post-rewrite code to libgit
- Add a function to update HEAD after creating a commit
- commit: move empty message checks to libgit
- t3404: check intermediate squash messages
The sequencer infrastructure is shared across "git cherry-pick", "git rebase -i", etc., and has always spawned "git commit" when it needs to create a commit. It has been taught to do so internally, when able, by reusing the codepath "git commit" itself uses, which gives performance boost for a few tens of percents in some sample scenarios.
Will merge to and cook in 'next'.
* jk/fewer-pack-rescan (2017-11-22) 5 commits (merged to 'next' on 2017-11-27 at 2c35a2d831)
+ sha1_file: fast-path null sha1 as a missing object
+ everything_local: use "quick" object existence check
+ p5551: add a script to test fetch pack-dir rescans
+ t/perf/lib-pack: use fast-import checkpoint to create packs
+ p5550: factor out nonsense-pack creation
Internaly we use 0{40} as a placeholder object name to signal the codepath that there is no such object (e.g. the fast-forward check while "git fetch" stores a new remote-tracking ref says "we know there is no 'old' thing pointed at by the ref, as we are creating it anew" by passing 0{40} for the 'old' side), and expect that a codepath to locate an in-core object to return NULL as a sign that the object does not exist. A look-up for an object that does not exist however is quite costly with a repository with large number of packfiles. This access pattern has been optimized.
Will merge to 'master'.
* jn/ssh-wrappers (2017-11-21) 9 commits
(merged to 'next' on 2017-11-27 at 00a2bb7a3c)
+ connect: correct style of C-style comment
+ ssh: 'simple' variant does not support --port
+ ssh: 'simple' variant does not support -4/-6
+ ssh: 'auto' variant to select between 'ssh' and 'simple'
+ connect: split ssh option computation to its own function
+ connect: split ssh command line options into separate function
+ connect: split git:// setup into a separate function
+ connect: move no_fork fallback to git_tcp_connect
+ ssh test: make copy_ssh_wrapper_as clean up after itself (this branch uses bw/protocol-v1.)
The ssh-variant 'simple' introduced earlier broke existing installations by not passing --port/-4/-6 and not diagnosing an attempt to pass these as an error. Instead, default to automatically detect how compatible the GIT_SSH/GIT_SSH_COMMAND is to OpenSSH convention and then error out an invocation to make it easier to diagnose connection errors.
Will merge to 'master'.
* hm/config-parse-expiry-date (2017-11-18) 1 commit (merged to 'next' on 2017-11-27 at 20014f5541)
+ config: add --expiry-date
"git config --expiry-date gc.reflogexpire" can read "2.weeks" from the configuration and report it as a timestamp, just like "--int" would read "1k" and report 1024, to help consumption by scripts.
Will merge to 'master'.
* dj/runtime-prefix (2017-11-28) 4 commits
. exec_cmd: RUNTIME_PREFIX on some POSIX systems . Makefile: add Perl runtime prefix support . Makefile: add support for "perllibdir"
. Makefile: generate Perl header from template file
A build-time option has been added to allow Git to be told to refer to its associated files relative to the main binary, in the same way that has been possible on Windows for quite some time, for Linux, BSDs and Darwin.
Tentatively kicked out of 'next' to see how well another topic ab/simplify-perl-makefile that heavily conflicts with this fares.
* ls/editor-waiting-message (2017-12-04) 2 commits
- launch_editor(): indicate that Git waits for user input
- refactor "dumb" terminal determination
Git shows a message to tell the user that it is waiting for the user to finish editing when spawning an editor, in case the editor opens to a hidden window or somewhere obscure and the user gets lost.
Still being bikeshed on, but hopefully the final is getting closer. This is at its v4.
* tz/branch-doc-remove-set-upstream (2017-11-17) 1 commit (merged to 'next' on 2017-11-27 at 8fcad3f6e7)
+ branch doc: remove --set-upstream from synopsis
"git branch --set-upstream" has been deprecated and (sort of) removed, as "--set-upstream-to" is the preferred one these days. The documentation still had "--set-upstream" listed on its synopsys section, which has been corrected.
Will merge to 'master'.
* en/rename-progress (2017-12-02) 5 commits
(merged to 'next' on 2017-12-04 at 49b39d2297)
+ diffcore-rename: make diff-tree -l0 mean -l<large>
(merged to 'next' on 2017-11-20 at 77a2e0ddd9)
+ sequencer: show rename progress during cherry picks
+ diff: remove silent clamp of renameLimit
+ progress: fix progress meters when dealing with lots of work
+ sequencer: warn when internal merge may be suboptimal due to renameLimit
Historically, the diff machinery for rename detection had a hardcoded limit of 32k paths; this is being lifted to allow users trade cycles with a (possibly) easier to read result.
Will merge to 'master'.
* ar/unconfuse-three-dots (2017-12-04) 7 commits
- t4013: test new output from diff --abbrev --raw
- diff: diff_aligned_abbrev: remove ellipsis after abbreviated SHA-1 value
- t4013: prepare for upcoming "diff --raw --abbrev" output format change
- checkout: describe_detached_head: remove ellipsis after committish
- print_sha1_ellipsis: introduce helper
- Documentation: user-manual: limit usage of ellipsis
- Documentation: revisions: fix typo: "three dot" ---> "three-dot" (in line with "two-dot").
Ancient part of codebase still shows dots after an abbreviated object name just to show that it is not a full object name, but these ellipses are confusing to people who newly discovered Git who are used to seeing abbreviated object names and find them confusing with the range syntax.
Almost there.
cf. <[email protected]>
* jh/object-filtering (2017-11-22) 6 commits
(merged to 'next' on 2017-11-27 at e5008c3b28)
+ pack-objects: add list-objects filtering
+ rev-list: add list-objects filtering support
+ list-objects: filter objects in traverse_commit_list
+ oidset: add iterator methods to oidset
+ oidmap: add oidmap iterator methods
+ dir: allow exclusions from blob in addition to file
(this branch is used by cc/object-filtering-typofix, jh/fsck-promisors and jh/partial-clone.)
In preparation for implementing narrow/partial clone, the object walking machinery has been taught a way to tell it to "filter" some objects from enumeration.
Expecting incremental updates for a finishing touch.
* jh/fsck-promisors (2017-11-22) 10 commits
- gc: do not repack promisor packfiles
- rev-list: support termination at promisor objects
- sha1_file: support lazily fetching missing objects
- introduce fetch-object: fetch one promisor object
- index-pack: refactor writing of .keep files
- fsck: support promisor objects as CLI argument
- fsck: support referenced promisor objects
- fsck: support refs pointing to promisor objects
- fsck: introduce partialclone extension
- extension.partialclone: introduce partial clone extension
(this branch is used by jh/partial-clone; uses jh/object-filtering; is tangled with cc/object-filtering-typofix.)
In preparation for implementing narrow/partial clone, the machinery for checking object connectivity used by gc and fsck has been taught that a missing object is OK when it is referenced by a packfile specially marked as coming from trusted repository that promises to make them available on-demand and lazily.
* jh/partial-clone (2017-11-22) 14 commits
- fetch-pack: restore save_commit_buffer after use
- unpack-trees: batch fetching of missing blobs
- t5500: more tests for partial clone and fetch
- t5601: test for partial clone
- t5500: add fetch-pack tests for partial clone
- fetch: add from_promisor and exclude-promisor-objects parameters
- partial-clone: define partial clone settings in config
- fetch-pack: test support excluding large blobs
- pack-objects: test support for blob filtering
- remote-curl: add object filtering for partial clone
- fetch: add object filtering for partial fetch
- fetch: refactor calculation of remote list
- clone, fetch-pack, index-pack, transport: partial clone
- upload-pack: add object filtering for partial clone
(this branch uses jh/fsck-promisors and jh/object-filtering; is tangled with cc/object-filtering-typofix.)
The machinery to clone & fetch, which in turn involves packing and unpacking objects, have been told how to omit certain objects using the filtering mechanism introduced by the jh/object-filtering topic, and also mark the resulting pack as a promisor pack to tolerate missing objects, taking advantage of the mechanism introduced by the jh/fsck-promisors topic.
* sb/describe-blob (2017-11-16) 7 commits
- builtin/describe.c: describe a blob
- builtin/describe.c: factor out describe_commit
- builtin/describe.c: print debug statements earlier
- builtin/describe.c: rename oid to avoid variable shadowing
- revision.h: introduce blob/tree walking in order of the commits
- list-objects.c: factor out traverse_trees_and_blobs
- t6120: fix typo in test name
"git describe" was taught to dig trees deeper to find a <commit-ish>:<path> that refers to a given blob object.
* pb/bisect-helper-2 (2017-10-28) 8 commits
- t6030: make various test to pass GETTEXT_POISON tests
- bisect--helper: bisect_start shell function partially in C
- bisect--helper: get_terms & bisect_terms shell function in C
- bisect--helper: bisect_next_check shell function in C
- bisect--helper: check_and_set_terms shell function in C
- wrapper: move is_empty_file() and rename it as is_empty_or_missing_file()
- bisect--helper: bisect_write shell function in C
- bisect--helper: bisect_reset shell function in C
Expecting a reroll.
cf. <0102015f5e5ee171-f30f4868-886f-47a1-a4e4-b4936afc545d-000000@eu-west-1.amazonses.com>
* ot/mru-on-list (2017-10-01) 1 commit
- mru: use double-linked list from list.h
The first step to getting rid of mru API and using the doubly-linked list API directly instead.
Is there any remaining issues on this one?
* jm/svn-pushmergeinfo-fix (2017-09-17) 1 commit
- git-svn: fix svn.pushmergeinfo handling of svn+ssh usernames.
"git svn dcommit" did not take into account the fact that a svn+ssh:// URL with a username@ (typically used for pushing) refers to the same SVN repository without the username@ and failed when svn.pushmergeinfo option is set.
Needs a test, perhaps as a follow-up patch.
Will merge to 'next'.
* bw/protocol-v1 (2017-10-17) 11 commits
(merged to 'next' on 2017-11-27 at 55040d09ec)
+ Documentation: document Extra Parameters
+ ssh: introduce a 'simple' ssh variant
+ i5700: add interop test for protocol transition
+ http: tell server that the client understands v1
+ connect: tell server that the client understands v1
+ connect: teach client to recognize v1 server response
+ upload-pack, receive-pack: introduce protocol version 1
+ daemon: recognize hidden request arguments
+ protocol: introduce protocol extension mechanisms
+ pkt-line: add packet_write function
+ connect: in ref advertisement, shallows are last (this branch is used by jn/ssh-wrappers.)
A new mechanism to upgrade the wire protocol in place is proposed and demonstrated that it works with the older versions of Git without harming them.
Will merge to 'master'.
* bc/hash-algo (2017-11-28) 5 commits
(merged to 'next' on 2017-11-28 at 5c74632345)
+ repository: fix a sparse 'using integer as NULL pointer' warning (merged to 'next' on 2017-11-27 at 98cc9ef2a8)
+ Switch empty tree and blob lookups to use hash abstraction
+ Integrate hash algorithm support with repo setup
+ Add structure representing hash algorithm
+ setup: expose enumerated repo info
An infrastructure to define what hash function is used in Git is introduced, and an effort to plumb that throughout various codepaths has been started.
Will merge to 'master'.
* sb/submodule-recursive-checkout-detach-head (2017-07-28) 2 commits (merged to 'next' on 2017-11-27 at 6584ec1a65)
+ Documentation/checkout: clarify submodule HEADs to be detached
+ recursive submodules: detach HEAD from new state
"git checkout --recursive" may overwrite and rewind the history of the branch that happens to be checked out in submodule repositories, which might not be desirable. Detach the HEAD but still allow the recursive checkout to succeed in such a case.
Will merge to 'master'.
Quoted 9 lines · Junio C Hamano
* cc/object-filtering-typofix (2017-12-04) 1 commit
- list-objects-filter-options: fix 'keword' typo in comment
(this branch uses jh/object-filtering; is tangled with jh/fsck-promisors and jh/partial-clone.)Typofix for a topic already in 'next'.
JeffH said that jh/object-filtering needs further polishing a bit before graduating to 'master', so it would be appreciated if this can also be rolled into such an incremental update.
I've pulled this into my branch and will include it in my V6 update. Thanks
jeff
Quoted 1 line · Junio C Hamano
* en/rename-directory-detection (2017-11-21) 33 commits
<snip>
Quoted 5 lines
Rename detection logic in "diff" family that is used in "merge" has learned to guess when all of x/a, x/b and x/c have moved to z/a, z/b and z/c, it is likely that x/d added in the meantime would also want to move to z/d by taking the hint that the entire directory 'x' moved to 'z'.
It appears that you're still using V3 of my directory rename detection series; I got some feedback from Stefan and Johannes on that series (including compilation failures on Windows) and believe I have addressed all of it in V4, which can be found here:
https://public-inbox.org/git/[email protected]/
Quoted 6 lines · On Mon, 04 Dec 2017 13:46:43 -0800 Junio C Hamano <[email protected]> wrote:
* jt/diff-anchored-patience (2017-11-28) 1 commit
- diff: support anchoring line(s)"git diff" learned a variant of the "--patience" algorithm, to which the user can specify which 'unique' line to be used as anchoring points.
Is there anything I can do to progress this? Johannes Schindelin wrote that he is in favor of this feature [1]. He also remarked on the fact that the anchors are not freed [2], but I have replied [3] that it seems that diff arguments are not freed in general (so there would be no good place to put the freeing statements).
[1] https://public-inbox.org/git/alpine.DEB.2.21.1.1712011447550.98586@virtualbox/
[2] https://public-inbox.org/git/alpine.DEB.2.21.1.1711300134560.6482@virtualbox/
[3] https://public-inbox.org/git/[email protected]/
Quoted 11 lines · Jonathan Tan
Quoted 6 lines · On Mon, 04 Dec 2017 13:46:43 -0800 Junio C Hamano <[email protected]> wrote:
* jt/diff-anchored-patience (2017-11-28) 1 commit
- diff: support anchoring line(s)"git diff" learned a variant of the "--patience" algorithm, to which the user can specify which 'unique' line to be used as anchoring points.
Is there anything I can do to progress this?
I had an impression that there weren't any major outstanding issues. Such topics will move at their own pace and the only thing somebody could do to expedite is to somehow block other topics in flight so that we have to worry about smaller number of topics ;-)
Quoted 12 lines · Junio C Hamano
* tb/check-crlf-for-safe-crlf (2017-11-27) 1 commit
- convert: tighten the safe autocrlf handlingThe "safe crlf" check incorrectly triggered for contents that does not use CRLF as line endings, which has been corrected.
Will merge to 'next'.
Looks like t0027-auto-crlf.sh is failing on Windows:
https://travis-ci.org/git/git/jobs/312135514
Could that patch be related?
- Lars
Quoted 13 lines · Lars Schneider
Quoted 12 lines · Junio C Hamano
* tb/check-crlf-for-safe-crlf (2017-11-27) 1 commit
- convert: tighten the safe autocrlf handlingThe "safe crlf" check incorrectly triggered for contents that does not use CRLF as line endings, which has been corrected.
Will merge to 'next'.
Quoted 7 lines
Looks like
t0027-auto-crlf.shis failing on Windows:
https://travis-ci.org/git/git/jobs/312135514Could that patch be related?
- Lars
Chances are high, I will have a look.
Thanks for noticing.
Quoted 9 lines · Torsten Bögershausen
Quoted 7 lines
Looks like
t0027-auto-crlf.shis failing on Windows:
https://travis-ci.org/git/git/jobs/312135514Could that patch be related?
- Lars
Chances are high, I will have a look.
Thanks for noticing.
Thanks.
Hi,
Quoted 10 lines · Lars Schneider
Quoted 10 lines · Junio C Hamano
* tb/check-crlf-for-safe-crlf (2017-11-27) 1 commit
- convert: tighten the safe autocrlf handlingThe "safe crlf" check incorrectly triggered for contents that does not use CRLF as line endings, which has been corrected.
Quoted 7 lines
Quoted 2 lines
Will merge to 'next'.
Looks like
t0027-auto-crlf.shis failing on Windows:
https://travis-ci.org/git/git/jobs/312135514Could that patch be related?
That is not the only thing going wrong:
https://travis-ci.org/git/git/builds/312551566
It would seem that t9001 is broken on Linux32, t5616 is broken on macOS, and something really kinky is going on with the GETTEXT_POISON text, as it seems to just abort while trying to run t6120.
Ciao,
Johannes
Quoted 7 lines · Johannes Schindelin
That is not the only thing going wrong:
https://travis-ci.org/git/git/builds/312551566It would seem that t9001 is broken on Linux32, t5616 is broken on macOS, and something really kinky is going on with the
GETTEXT_POISONtext, as it seems to just abort while trying to run t6120.
I thought the verbose logs from the test might be useful, but looking at the travis output for that job[1], there's an unrelated problem preventing the ci/print-test-failures.sh script from running properly:
$ ci/print-test-failures.sh cat: t/test-results/t1304-default-acl.exit: Permission denied ------------------------------------------------------------------------ t/test-results/t1304-default-acl.out... ------------------------------------------------------------------------ cat: t/test-results/t1304-default-acl.out: Permission denied
[1] https://travis-ci.org/git/git/jobs/312551595#L2185
I didn't see the same failure for other build targets at a glance, so the permission issue might only be a problem for the linux32 builds.
Signature · 5 lines
Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A diplomat is a person who can tell you to go to Hell in such a way that you actually look forward to the trip. -- Anonymous
Quoted 20 lines · Todd Zullinger
Quoted 7 lines · Johannes Schindelin
That is not the only thing going wrong:
https://travis-ci.org/git/git/builds/312551566It would seem that t9001 is broken on Linux32, t5616 is broken on macOS, and something really kinky is going on with the
GETTEXT_POISONtext, as it seems to just abort while trying to run t6120.I thought the verbose logs from the test might be useful, but looking at the travis output for that job[1], there's an unrelated problem preventing the
ci/print-test-failures.shscript from running properly:$ ci/print-test-failures.sh cat: t/test-results/t1304-default-acl.exit: Permission denied ------------------------------------------------------------------------ t/test-results/t1304-default-acl.out... ------------------------------------------------------------------------ cat: t/test-results/t1304-default-acl.out: Permission denied
Quoted 4 lines
[1] https://travis-ci.org/git/git/jobs/312551595#L2185
I didn't see the same failure for other build targets at a glance, so the permission issue might only be a problem for the linux32 builds.
Curious.
The acl stuff hasn't changed for a long time and I do not think of a reason offhand why the test should behave differently between say 'maint' and 'pu', yet 'maint' is passing while 'pu' is not...
I wouldn't be surprised if Git::Error change is causing t9001 failure, as that can explain why 'pu' is different.
Quoted 27 lines · Junio C Hamano
Quoted 22 lines · Todd Zullinger
Quoted 7 lines · Johannes Schindelin
That is not the only thing going wrong:
https://travis-ci.org/git/git/builds/312551566It would seem that t9001 is broken on Linux32, t5616 is broken on macOS, and something really kinky is going on with the
GETTEXT_POISONtext, as it seems to just abort while trying to run t6120.I thought the verbose logs from the test might be useful, but looking at the travis output for that job[1], there's an unrelated problem preventing the
ci/print-test-failures.shscript from running properly:$ ci/print-test-failures.sh cat: t/test-results/t1304-default-acl.exit: Permission denied ------------------------------------------------------------------------ t/test-results/t1304-default-acl.out... ------------------------------------------------------------------------ cat: t/test-results/t1304-default-acl.out: Permission denied
Quoted 8 lines
Quoted 2 lines
I didn't see the same failure for other build targets at a glance, so the permission issue might only be a problem for the linux32 builds.
Curious.
The acl stuff hasn't changed for a long time and I do not think of a reason offhand why the test should behave differently between say 'maint' and 'pu', yet 'maint' is passing while 'pu' is not...
My recent 657343a602 (travis-ci: move Travis CI code into dedicated scripts, 2017-09-10) change might have broken that somehow...
See this comment:
# If this script runs inside a docker container, then all commands are
# usually executed as root. Consequently, the host user might not be # able to access the test output files. # If a host user id is given, then create a user "ci" with the host user # id to make everything accessible to the host user.
- Lars
Quoted 6 lines · Lars Schneider
Quoted 3 lines
The acl stuff hasn't changed for a long time and I do not think of a reason offhand why the test should behave differently between say 'maint' and 'pu', yet 'maint' is passing while 'pu' is not...
My recent
657343a602(travis-ci: move Travis CI code into dedicated scripts, 2017-09-10) change might have broken that somehow...
But the puzzling thing is that commit is in 'maint' as well as 'pu'.
Quoted 1 line · Johannes Schindelin
Hi,
[...]
Quoted 12 lines
That is not the only thing going wrong:
https://travis-ci.org/git/git/builds/312551566It would seem that t9001 is broken on Linux32, t5616 is broken on macOS, and something really kinky is going on with the
GETTEXT_POISONtext, as it seems to just abort while trying to run t6120.Ciao,
Johannes
I'm looking at t5616 now on my mac.
Looks like the MAC doesn't like my line counting in the tests. I'll fix in my next version.
Jeff
Quoted 2 lines · Jeff Hostetler
I'm looking at t5616 now on my mac.
Looks like the MAC doesn't like my line counting in the tests.
Ah, of course, test "$(wc -l)" = number would not work over there we have "test_line_count" helper exactly for that purose.
PATCH 1/1 check-non-portable-shell.pl: Quoted `wc -l` is not portable
From: Torsten Bögershausen <[email protected]>
wc -l is used to count the number if lines in test scripts.
$ wc -l Makefile
gives a line like this:
105 Makefile
while Mac OS has 4 leading spaces:
105 MakefileAnd this means that shell expressions like test "$(wc -l <expect)" = "4" don't work under Mac OS,
A portable way to use wc -l is to omit the '"':
test $(wc -l <expect) = "4"
Add a check in check-non-portable-shell.pl to find '"' between wc -l and '='
--- t/check-non-portable-shell.pl | 1 + 1 file changed, 1 insertion(+)
t/check-non-portable-shell.pl +1 -0
@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use `$(wc -l)`'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; # this resets our $. for each file close ARGV if eof;
Signature · 1 line
2.15.1.271.g1a4e40aa5d
Re: [PATCH v1 1/1] check-non-portable-shell.pl: Quoted `wc -l` is not portable
Hi Torsten,
Quoted 28 lines · On Sun, 10 Dec 2017, [email protected] wrote:
From: Torsten Bögershausen <[email protected]>
wc -l is used to count the number if lines in test scripts.
$ wc -l Makefile gives a line like this: 105 Makefile while Mac OS has 4 leading spaces: 105 MakefileAnd this means that shell expressions like test "$(wc -l <expect)" = "4" don't work under Mac OS,
A portable way to use
wc -lis to omit the '"':
test $(wc -l <expect) = "4"Add a check in check-non-portable-shell.pl to find '"' between
wc -land '='Signed-off-by Torsten Bögershausen <[email protected]>--- t/check-non-portable-shell.pl | 1 + 1 file changed, 1 insertion(+)t/check-non-portable-shell.pl +0
-0
t/check-non-portable-shell.pl while (<>) { · line 27
Quoted 7 lines
t/check-non-portable-shell.pl +1
-0@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use `$(wc -l)`'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; # this resets our $. for each file close ARGV if eof;
As noted elsewhere, this should suggest test_line_count instead. After all, that function is not only guaranteed to stay portable (even if we should ever start supporting systems *without* wc), but it also has a semantically-meaningful name worthy of the current century.
Ciao,
Dscho
Re: [PATCH v1 1/1] check-non-portable-shell.pl: Quoted `wc -l` is not portable
In reply to [email protected]Quoted 3 lines · [email protected] writes:
From: Torsten Bögershausen <[email protected]>
wc -l is used to count the number if lines in test scripts.
Hmmmm, "is used" -> "should not be used", probably.
Just say "Use test_line_count instead" and leave the explanation why it is a better thing to use to fb3340a6 ("test-lib: introduce test_line_count to measure files", 2010-10-31), perhaps?
PATCH v2 1/1 check-non-portable-shell.pl: Quoted `wc -l` is not portable
In reply to Junio C HamanoFrom: Torsten Bögershausen <[email protected]>
wc -l was used to count the number if lines in test scripts.
$ wc -l Makefile
gives a line like this:
105 Makefile
while Mac OS has 4 leading spaces:
105 MakefileAnd this means that shell expressions like test "$(wc -l <expect)" = "4" don't work under Mac OS,
Commit fb3340a6 introduced test_line_count() as a portable solution.
Add a check in check-non-portable-shell.pl to find '"' between wc -l and '=' and hint the user about test_line_count().
---
I added Dscho as reviewer, thanks.
If there is anything more, please holler.
t/check-non-portable-shell.pl | 1 + 1 file changed, 1 insertion(+)
t/check-non-portable-shell.pl +1 -0
@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use test_line_count'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; # this resets our $. for each file close ARGV if eof;
Signature · 1 line
2.15.1.271.g1a4e40aa5d
Re: [PATCH v2 1/1] check-non-portable-shell.pl: Quoted `wc -l` is not portable
Quoted 12 lines · On Sat, Dec 16, 2017 at 2:52 PM, <[email protected]> wrote:
[...]
Add a check in check-non-portable-shell.pl to find '"' betweenwc -land '=' and hint the user abouttest_line_count().Reviewed-by Johannes Schindelin <[email protected]>Signed-off-by Torsten Bögershausen <[email protected]>---
t/check-non-portable-shell.pl +0
-0
t/check-non-portable-shell.pl while (<>) { · line 24
Quoted 4 lines
t/check-non-portable-shell.pl +1
-0@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use test_line_count';
Nit: Every other "please use" suggestion is parenthesized; for consistency, this probably ought to be, as well.
Quoted 1 line
t/check-non-portable-shell.pl +0
-0/\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)';
PATCH v3 1/1 check-non-portable-shell.pl: Quoted `wc -l` is not portable
In reply to Junio C HamanoFrom: Torsten Bögershausen <[email protected]>
wc -l was used to count the number if lines in test scripts.
$ wc -l Makefile
gives a line like this:
105 Makefile
while Mac OS has 4 leading spaces:
105 MakefileAnd this means that shell expressions like test "$(wc -l <expect)" = "4" don't work under Mac OS,
Commit fb3340a6 introduced test_line_count() as a portable solution.
Add a check in check-non-portable-shell.pl to find '"' between wc -l and '=' and hint the user about test_line_count().
--- t/check-non-portable-shell.pl | 1 + 1 file changed, 1 insertion(+)
t/check-non-portable-shell.pl +0 -0
Use () around the hint.
Thanks to Eric for the sharp eyes.
t/check-non-portable-shell.pl +1 -0
@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable (please use test_line_count)'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; # this resets our $. for each file close ARGV if eof;
Signature · 1 line
2.15.1.271.g1a4e40aa5d
Re: [PATCH v3 1/1] check-non-portable-shell.pl: Quoted `wc -l` is not portable
Quoted 3 lines · [email protected] writes:
Reviewed-by Johannes Schindelin <[email protected]>Signed-off-by Torsten Bögershausen <[email protected]>
I'll flip these and add a helped-by to credit Eric.
check-non-portable-shell.pl: wc -l may have leading WS
Test scripts count number of lines in an output and check it againt its expectation. fb3340a6 ("test-lib: introduce test_line_count to measure files", 2010-10-31) introduced a helper to show a failure in such a test in a more readable way than comparing wc -l output with a number.
Besides, on some platforms, "$(wc -l <file)" is padded with leading whitespace on the left, so
test "$(wc -l <file)" = 4
would not work (most notably on macosX); the users of test_line_count helper would not suffer from such a portability glitch.
Add a check in check-non-portable-shell.pl to find '"' between wc -l and '=' and hint the user about test_line_count().
t/check-non-portable-shell.pl
Quoted 12 lines
--- t/check-non-portable-shell.pl | 1 + 1 file changed, 1 insertion(+)t/check-non-portable-shell.pl +0
-0Use () around the hint.
Thanks to Eric for the sharp eyes.t/check-non-portable-shell.pl +0
-0
Don't try to apply this patch to your tree yourself ;-)
t/check-non-portable-shell.pl while (<>) { · line 27
Quoted 8 lines
t/check-non-portable-shell.pl +1
-0@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable (please use test_line_count)'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; # this resets our $. for each file close ARGV if eof;
Thanks. The dq before \s*= is rather cute ;-)
Re: [PATCH v3 1/1] check-non-portable-shell.pl: Quoted `wc -l` is not portable
Quoted 8 lines · Junio C Hamano
Quoted 3 lines · [email protected] writes:
Reviewed-by Johannes Schindelin <[email protected]>Signed-off-by Torsten Bögershausen <[email protected]>I'll flip these and add a helped-by to credit Eric.
...
Quoted 1 line
Don't try to apply this patch to your tree yourself ;-)
Thanks so much for cleaning up my mess.
Quoted 3 lines · Jeff Hostetler
I'm looking at t5616 now on my mac.
Looks like the MAC doesn't like my line counting in the tests. I'll fix in my next version.
Perhaps that's as simple as using the test_line_counts helper?
t/t5616-partial-clone.sh +0 -0
@@ -19,7 +19,7 @@ test_expect_success 'setup normal src repo' '
git -C src ls-files -s file.$n.txt >>temp done && awk -f print_2.awk <temp | sort >expect_1.oids &&
- test "$(wc -l <expect_1.oids)" = "4"
+ test_line_count = 4 expect_1.oids
'
# bare clone "src" giving "srv.bare" for use as our server. @@ -76,7 +76,7 @@ test_expect_success 'push new commits to server' ' grep blob <temp \ | awk -f print_1.awk \ | sort >expect_2.oids && - test "$(wc -l <expect_2.oids)" = "8" && + test_line_count = 8 expect_2.oids && git -C src blame master -- file.1.txt >expect.blame '
@@ -100,7 +100,7 @@ test_expect_success 'partial fetch inherits filter settings' '
# it should be in a new packfile (since the promisor boundary is # currently a packfile, it should not get unpacked upon receipt.) test_expect_success 'verify diff causes dynamic object fetch' ' - test "$(wc -l <observed.oids)" = "4" && + test_line_count = 4 observed.oids && cat observed.oids && git -C pc1 diff master..origin/master -- file.1.txt && ( cd pc1/.git/objects/pack; @@ -110,7 +110,7 @@ test_expect_success 'verify diff causes dynamic object fetch' ' | awk -f print_1.awk \ | sort >observed.oids && cat observed.oids && - test "$(wc -l <observed.oids)" = "4" + test_line_count = 4 observed.oids '
# force dynamic object fetch using blame.
Signature · 3 lines
Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If quizzes are quizzical, what are tests?
Quoted 5 lines · Todd Zullinger
Quoted 3 lines · Jeff Hostetler
I'm looking at t5616 now on my mac.
Looks like the MAC doesn't like my line counting in the tests. I'll fix in my next version.
[]
Quoted 5 lines
| sort >expect_2.oids &&(quoted diff) +1
-1- test "$(wc -l <expect_2.oids)" = "8" && + test_line_count = 8 expect_2.oids &&git -C src blame master -- file.1.txt >expect.blame
'
The problem seems to be the '"' around wc, this would work:
test $(wc -l <expect_2.oids) = "8" &&
What do you guys think a about a lint test like this:
t/check-non-portable-shell.pl +1 -0
@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use `$(wc -l)`'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && expo
Hi Torsten,
Quoted 25 lines · Torsten Bögershausen
Quoted 5 lines · Todd Zullinger
Quoted 3 lines · Jeff Hostetler
I'm looking at t5616 now on my mac.
Looks like the MAC doesn't like my line counting in the tests. I'll fix in my next version.[]
Quoted 5 lines
| sort >expect_2.oids &&(quoted diff) +1
-1- test "$(wc -l <expect_2.oids)" = "8" && + test_line_count = 8 expect_2.oids &&git -C src blame master -- file.1.txt >expect.blame
'The problem seems to be the '"' around wc, this would work:
test $(wc -l <expect_2.oids) = "8" &&What do you guys think a about a lint test like this:
t/check-non-portable-shell.pl +0
-0
t/check-non-portable-shell.pl while (<>) { · line 25
Quoted 5 lines
t/check-non-portable-shell.pl +1
-0@@ -21,6 +21,7 @@ while (<>) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use `$(wc -l)`'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && expo
Please suggest test_line_count instead.
Ciao,
Dscho