git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* What's cooking in git.git (Feb 2011, #07; Mon, 28)
@ 2011-03-01  1:05 Junio C Hamano
  2011-03-01  7:59 ` Jens Lehmann
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Junio C Hamano @ 2011-03-01  1:05 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'.

I started draft release notes for 1.7.5 on 'master' branch.

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

* jc/diff-irreversible-delete (2011-02-28) 1 commit
 - git diff -D: omit the preimage of deletes

Just a POC.

* jc/index-pack (2011-02-25) 5 commits
 - index-pack --verify: read anomalous offsets from v2 idx file
 - write_idx_file: need_large_offset() helper function
 - index-pack: --verify
 - write_idx_file: introduce a struct to hold idx customization options
 - index-pack: group the delta-base array entries also by type

Still a WIP.

* mm/push-default-advice (2011-02-28) 2 commits
 - push: better error messages for detached HEAD and "no destination"
 - push: better error message when push.default = tracking

There were some rewording discussion I didn't roll into this, not because
I had objections to, but because I was handling other topics.  I expect
I'll see a reroll soonish so that we can merge this down soonish.

* sp/maint-fd-limit (2011-02-28) 2 commits
 - mingw: add minimum getrlimit() compatibility stub
 - Limit file descriptors used by packs

Erik, please check the made-up commit log message and sign it off.
Will merge to 'next' after that.

* uk/ls-remote-in-get-remote-url (2011-02-28) 1 commit
 - get_remote_url(): use the same data source as ls-remote to get remote urls

Will merge to 'next'.

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

* jh/merge-sans-branch (2011-02-10) 4 commits
 . merge: add support for merging from upstream by default
 - merge: introduce per-branch-configuration helper function
 - merge: introduce setup_merge_commit helper function
 - merge: update the usage information to be more modern

There was an objection to the tip one that determines the upstream in a
wrong way?

* jc/complete-symmetric-diff (2011-02-23) 1 commit
 - completion: complete "git diff ...branc<TAB>"

It was pointed out that this would regress diffing two blobs,
using <tree>:<path> syntax.

* gr/cvsimport-alternative-cvspass-location (2011-02-18) 1 commit
 - Look for password in both CVS and CVSNT password files.

It seems that we need separate parsers for these two formats in order not
to regress the users of the original cvs.

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

* jc/rename-degrade-cc-to-c (2011-01-06) 3 commits
 . diffcore-rename: fall back to -C when -C -C busts the rename limit
 . diffcore-rename: record filepair for rename src
 . diffcore-rename: refactor "too many candidates" logic

Somebody said that this is an expensive no-op?

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

* jn/maint-commit-missing-template (2011-02-25) 1 commit
  (merged to 'next' on 2011-02-25 at c95589d)
 + commit: error out for missing commit message template

* mg/maint-difftool-vim-readonly (2011-02-25) 1 commit
  (merged to 'next' on 2011-02-25 at 990579c)
 + mergetool-lib: call vim in readonly mode for diffs

* fk/maint-cvsimport-early-failure (2011-01-31) 1 commit
 - git-cvsimport.perl: Bail out right away when reading from the server fails

* jk/strbuf-vaddf (2011-02-25) 2 commits
 - strbuf: add strbuf_vaddf
 - compat: provide a fallback va_copy definition
 (this branch is used by ab/i18n-st, jk/trace-sifter and jn/status-translatable.)

* jk/trace-sifter (2011-02-24) 6 commits
 - trace: give repo_setup trace its own key
 - add packet tracing debug code
 - trace: add trace_strbuf
 - trace: factor out "do we want to trace" logic
 - trace: refactor to support multiple env variables
 - trace: add trace_vprintf
 (this branch uses jk/strbuf-vaddf; is tangled with ab/i18n-st and jn/status-translatable.)

* jn/maint-instaweb-plack-fix (2011-02-26) 1 commit
 - git-instaweb: Change how gitweb.psgi is made runnable as standalone app

* jn/status-translatable (2011-02-25) 3 commits
 - commit, status: use status_printf{,_ln,_more} helpers
 - commit: refer to commit template as s->fp
 - wt-status: add helpers for printing wt-status lines
 (this branch is used by ab/i18n-st and ab/i18n-st; uses jk/strbuf-vaddf; is tangled with jk/trace-sifter.)

* mh/p4 (2011-02-25) 1 commit
  (merged to 'next' on 2011-02-26 at 1693331)
 + git-p4 submit: prevent 'Jobs' section from being removed from p4 change log

* nd/rfc-add-u-full-tree (2011-02-07) 1 commit
 - add: make "add -u" update full tree without pathspec

* ss/git-gui-mergetool (2011-02-26) 2 commits
 - mergetool--lib: Add Beyond Compare 3 as a tool
 - mergetool--lib: Sort tools alphabetically for easier lookup

* ss/mergetool--lib (2011-02-27) 2 commits
 - mergetool--lib: Add Beyond Compare 3 as a tool
 - mergetool--lib: Sort tools alphabetically for easier lookup

Will merge to 'next'.

* nd/index-doc (2010-09-06) 1 commit
 - doc: technical details about the index file format

I'll try to find time to fill in the details.

* ab/i18n-st (2011-02-22) 74 commits
 - i18n: git-shortlog basic messages
 - i18n: git-revert split up "could not revert/apply" message
 - i18n: git-revert literal "me" messages
 - i18n: git-revert "Your local changes" message
 - i18n: git-revert basic messages
 - i18n: git-notes GIT_NOTES_REWRITE_MODE error message
 - i18n: git-notes basic commands
 - i18n: git-gc "Auto packing the repository" message
 - i18n: git-gc basic messages
 - i18n: git-describe basic messages
 - i18n: git-clean clean.requireForce messages
 - i18n: git-clean basic messages
 - i18n: git-bundle basic messages
 - i18n: git-archive basic messages
 - i18n: git-status "renamed: " message
 - i18n: git-status "Initial commit" message
 - i18n: git-status "Changes to be committed" message
 - i18n: git-status shortstatus messages
 - i18n: git-status "nothing to commit" messages
 - i18n: git-status basic messages
 - i18n: git-push "prevent you from losing" message
 - i18n: git-push basic messages
 - i18n: git-tag tag_template message
 - i18n: git-tag basic messages
 - i18n: git-reset "Unstaged changes after reset" message
 - i18n: git-reset reset_type_names messages
 - i18n: git-reset basic messages
 - i18n: git-rm basic messages
 - i18n: git-mv "bad" messages
 - i18n: git-mv basic messages
 - i18n: git-merge "Wonderful" message
 - i18n: git-merge "You have not concluded your merge" messages
 - i18n: git-merge "Updating %s..%s" message
 - i18n: git-merge basic messages
 - i18n: git-log "--OPT does not make sense" messages
 - i18n: git-log basic messages
 - i18n: git-grep "--open-files-in-pager" message
 - i18n: git-grep basic messages
 - i18n: git-fetch split up "(non-fast-forward)" message
 - i18n: git-fetch update_local_ref messages
 - i18n: git-fetch formatting messages
 - i18n: git-fetch basic messages
 - i18n: git-diff basic messages
 - i18n: git-commit advice messages
 - i18n: git-commit "enter the commit message" message
 - i18n: git-commit print_summary messages
 - i18n: git-commit formatting messages
 - i18n: git-commit "middle of a merge" message
 - i18n: git-commit basic messages
 - i18n: git-checkout "Switched to a .. branch" message
 - i18n: git-checkout "HEAD is now at" message
 - i18n: git-checkout describe_detached_head messages
 - i18n: git-checkout: our/their version message
 - i18n: git-checkout basic messages
 - i18n: git-branch "(no branch)" message
 - i18n: git-branch "git branch -v" messages
 - i18n: git-branch "Deleted branch [...]" message
 - i18n: git-branch "remote branch '%s' not found" message
 - i18n: git-branch basic messages
 - i18n: git-add "Unstaged changes" message
 - i18n: git-add "remove '%s'" message
 - i18n: git-add "did not match any files" message
 - i18n: git-add "The following paths are ignored" message
 - i18n: git-add basic messages
 - i18n: git-clone "Cloning into" message
 - i18n: git-clone "Cloning into" message
 - i18n: git-clone basic messages
 - i18n: git-init "Initialized [...] repository" message
 - i18n: git-init basic messages
 - i18n: "make distclean" should clean up after "make pot"
 - i18n: Makefile: "pot" target to extract messages marked for translation
 - i18n: do not poison translations unless GIT_GETTEXT_POISON envvar is set
 - i18n: add GETTEXT_POISON to simulate unfriendly translator
 - i18n: add no-op _() and N_() wrappers
 (this branch uses jk/strbuf-vaddf, jn/status-translatable and jn/status-translatable; is tangled with jk/trace-sifter.)

Rebased on other infrastructure adjustments (tentatively renamed the
branch).  I'd like to fast-track the basics (especially the bottom 3
patches), and am even tempted to rebase other patches on 'pu' that are not
yet in 'next' on top of them, to make the transition easier.

Unless there is something glaringly wrong, I'd merge up to 9018b8a (i18n:
git-clone "Cloning into" message) to 'next' soonish, possibly rebasing
other 'pu'-only topics on top of that commit.

* jc/checkout-orphan-warning (2011-02-18) 1 commit
 - commit: give final warning when reattaching HEAD to leave commits behind

* jh/maint-do-not-track-non-branches (2011-02-17) 1 commit
 - branch/checkout --track: Ensure that upstream branch is indeed a branch

Will merge to 'next'.

* jk/diffstat-binary (2011-02-19) 2 commits
  (merged to 'next' on 2011-02-23 at 49da967)
 + diff: don't retrieve binary blobs for diffstat
 + diff: handle diffstat of rewritten binary files

* jk/fail-null-clone (2011-02-17) 1 commit
  (merged to 'next' on 2011-02-23 at a4217f5)
 + clone: die when trying to clone missing local path

* jk/merge-rename-ux (2011-02-20) 6 commits
 - pull: propagate --progress to merge
 - merge: enable progress reporting for rename detection
 - add inexact rename detection progress infrastructure
 - commit: stop setting rename limit
 - bump rename limit defaults (again)
 - merge: improve inexact rename limit warning

Will merge to 'next'.

* jn/test-terminal-punt-on-osx-breakage (2011-02-17) 1 commit
  (merged to 'next' on 2011-02-23 at d754139)
 + tests: skip terminal output tests on OS X

* js/cherry-pick-usability (2011-02-19) 4 commits
  (merged to 'next' on 2011-02-23 at 95db30e)
 + Teach commit about CHERRY_PICK_HEAD
 + bash: teach __git_ps1 about CHERRY_PICK_HEAD
 + Introduce CHERRY_PICK_HEAD
 + t3507: introduce pristine-detach helper

* lt/rename-no-extra-copy-detection (2011-02-18) 3 commits
  (merged to 'next' on 2011-02-23 at 2c1f271)
 + diffcore-rename: improve estimate_similarity() heuristics
 + diffcore-rename: properly honor the difference between -M and -C
 + for_each_hash: allow passing a 'void *data' pointer to callback

* mg/rev-list-one-side-only (2011-02-22) 6 commits
 - t6007: test rev-list --cherry
 - log --cherry: a synonym
 - rev-list: --left/right-only are mutually exclusive
 - rev-list: documentation and test for --left/right-only
 - t6007: Make sure we test --cherry-pick
 - revlist.c: introduce --left/right-only for unsymmetric picking

Will merge to 'next'; somebody may want to try losing many lines from
format-patch before it hits 'master', though.  Hint, hint...

* so/submodule-no-update-first-time (2011-02-17) 2 commits
  (merged to 'next' on 2011-02-23 at 2c6e8c9)
 + t7406: "git submodule update {--merge|--rebase]" with new submodules
 + submodule: no [--merge|--rebase] when newly cloned

* jh/submodule-fetch-on-demand (2011-02-23) 6 commits
 - submodule update: Don't fetch when the submodule commit is already present
 - fetch/pull: Don't recurse into a submodule when commits are already present
 - Submodules: Add 'on-demand' value for the 'fetchRecurseSubmodule' option
 - config: teach the fetch.recurseSubmodules option the 'on-demand' value
 - fetch/pull: Add the 'on-demand' value to the --recurse-submodules option
 - fetch/pull: recurse into submodules when necessary

How well has this been cooked?

* jk/format-patch-multiline-header (2011-02-23) 3 commits
 - format-patch: rfc2047-encode newlines in headers
 - format-patch: wrap long header lines
 - strbuf: add fixed-length version of add_wrapped_text

Will merge to 'next'.

* js/checkout-untracked-symlink (2011-02-20) 2 commits
  (merged to 'next' on 2011-02-23 at 52a35ce)
 + do not overwrite untracked symlinks
 + Demonstrate breakage: checkout overwrites untracked symlink with directory

* jc/grep--no-index-pathspec-fix (2011-02-16) 1 commit
  (merged to 'next' on 2011-02-23 at 58b03b1)
 + grep --no-index: honor pathspecs correctly

* mz/rebase (2011-02-24) 33 commits
  (merged to 'next' on 2011-02-25 at 52caa7a)
 + Makefile: do not install sourced rebase scripts
  (merged to 'next' on 2011-02-22 at 3219155)
 + rebase: use @{upstream} if no upstream specified
 + rebase -i: remove unnecessary state rebase-root
 + rebase -i: don't read unused variable preserve_merges
 + git-rebase--am: remove unnecessary --3way option
 + rebase -m: don't print exit code 2 when merge fails
 + rebase -m: remember allow_rerere_autoupdate option
 + rebase: remember strategy and strategy options
 + rebase: remember verbose option
 + rebase: extract code for writing basic state
 + rebase: factor out sub command handling
 + rebase: make -v a tiny bit more verbose
 + rebase -i: align variable names
 + rebase: show consistent conflict resolution hint
 + rebase: extract am code to new source file
 + rebase: extract merge code to new source file
 + rebase: remove $branch as synonym for $orig_head
 + rebase -i: support --stat
 + rebase: factor out call to pre-rebase hook
 + rebase: factor out clean work tree check
 + rebase: factor out reference parsing
 + rebase: reorder validation steps
 + rebase -i: remove now unnecessary directory checks
 + rebase: factor out command line option processing
 + rebase: align variable content
 + rebase: align variable names
 + rebase: stricter check of standalone sub command
 + rebase: act on command line outside parsing loop
 + rebase: improve detection of rebase in progress
 + rebase: remove unused rebase state 'prev_head'
 + rebase: read state outside loop
 + rebase: refactor reading of state
 + rebase: clearer names for directory variables

Minor UI regression was reported but otherwise it looked like that the
topic is in a good shape.

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01  1:05 What's cooking in git.git (Feb 2011, #07; Mon, 28) Junio C Hamano
@ 2011-03-01  7:59 ` Jens Lehmann
  2011-03-01  8:39 ` Erik Faye-Lund
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Jens Lehmann @ 2011-03-01  7:59 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

Am 01.03.2011 02:05, schrieb Junio C Hamano:
> * jh/submodule-fetch-on-demand (2011-02-23) 6 commits
>  - submodule update: Don't fetch when the submodule commit is already present
>  - fetch/pull: Don't recurse into a submodule when commits are already present
>  - Submodules: Add 'on-demand' value for the 'fetchRecurseSubmodule' option
>  - config: teach the fetch.recurseSubmodules option the 'on-demand' value
>  - fetch/pull: Add the 'on-demand' value to the --recurse-submodules option
>  - fetch/pull: recurse into submodules when necessary
> 
> How well has this been cooked?

I'm currently working on a v2 of this series.

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01  1:05 What's cooking in git.git (Feb 2011, #07; Mon, 28) Junio C Hamano
  2011-03-01  7:59 ` Jens Lehmann
@ 2011-03-01  8:39 ` Erik Faye-Lund
  2011-03-01 17:50   ` Junio C Hamano
  2011-03-02 18:22 ` Erik Faye-Lund
  2011-03-05 17:04 ` Michael J Gruber
  3 siblings, 1 reply; 8+ messages in thread
From: Erik Faye-Lund @ 2011-03-01  8:39 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git, Shawn O. Pearce

On Tue, Mar 1, 2011 at 2:05 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Here are the topics that have been cooking.  Commits prefixed with '-' are
> only in 'pu' while commits prefixed with '+' are in 'next'.
>
> I started draft release notes for 1.7.5 on 'master' branch.
>
> --------------------------------------------------
> [New Topics]
>
> * jc/diff-irreversible-delete (2011-02-28) 1 commit
>  - git diff -D: omit the preimage of deletes
>
> Just a POC.
>
> * jc/index-pack (2011-02-25) 5 commits
>  - index-pack --verify: read anomalous offsets from v2 idx file
>  - write_idx_file: need_large_offset() helper function
>  - index-pack: --verify
>  - write_idx_file: introduce a struct to hold idx customization options
>  - index-pack: group the delta-base array entries also by type
>
> Still a WIP.
>
> * mm/push-default-advice (2011-02-28) 2 commits
>  - push: better error messages for detached HEAD and "no destination"
>  - push: better error message when push.default = tracking
>
> There were some rewording discussion I didn't roll into this, not because
> I had objections to, but because I was handling other topics.  I expect
> I'll see a reroll soonish so that we can merge this down soonish.
>
> * sp/maint-fd-limit (2011-02-28) 2 commits
>  - mingw: add minimum getrlimit() compatibility stub
>  - Limit file descriptors used by packs
>
> Erik, please check the made-up commit log message and sign it off.
> Will merge to 'next' after that.

Do you have any hint on how I can create a repo with more than 2048
packs so I can test that the patch works?

It builds just fine, perhaps that's enough? I guess Shawn already
tested the other part...

The reason I'm a bit in doubt is the following comment (from MSDN):

"Note   This upper limit may be beyond what is supported by a
particular Win32 platform and configuration."

But searching a bit more, it seems that the rest of the world seems to
think 2048 is the correct maximum. I especially take comfort in
reading that mysql (who keep a lot of open files) had their
OS_FILE_LIMIT define set to 2048, and it seemed to work (apart from
the times they needed even more open files!). I also find that there's
a registry key called "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Windows\USERProcessHandleQuota", and this is
probably what they mean to warn about. I think consulting that would
be completely overkill, and probably not even practically possible
(because the relationship between the maximum number of open files and
the maximum used handles isn't trivial).

There's also the added complication that _open_osfhandle also seems to
be limited by this 2048 limit (see the third comment here:
http://bugs.mysql.com/bug.php?id=24509). We use this function for
pipes and sockets as well. This alone might be a reason to corner-case
test the resulting binary on Windows properly.

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01  8:39 ` Erik Faye-Lund
@ 2011-03-01 17:50   ` Junio C Hamano
  2011-03-02  6:49     ` Johannes Sixt
  0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2011-03-01 17:50 UTC (permalink / raw
  To: kusmabite; +Cc: git, Shawn O. Pearce

Erik Faye-Lund <kusmabite@gmail.com> writes:

>> Erik, please check the made-up commit log message and sign it off.
>> Will merge to 'next' after that.
>
> Do you have any hint on how I can create a repo with more than 2048
> packs so I can test that the patch works?

A stupid and brute force way is to prepare an empty bare repository, add
something like the following to its config:

    [transfer]
            unpacklimit = 1

    [gc]
            auto = 0
            autopacklimit = 0

and push into it from a random existing repository starting from a
reasonably old commit, walking to a newer commit.  You can use something
like (totally untested):

        git rev-list --first-parent master |
        head -n 2000 |
        tac |
        while read commit
        do
		git push ../victim.git $commit:refs/heads/master
	done

> There's also the added complication that _open_osfhandle also seems to
> be limited by this 2048 limit (see the third comment here:
> http://bugs.mysql.com/bug.php?id=24509). We use this function for
> pipes and sockets as well. This alone might be a reason to corner-case
> test the resulting binary on Windows properly.

As long as the use of osfhandles for non filedescriptors is reasonably
bounded, it may be enough to make the 25 slop configurable per platform,
no?

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01 17:50   ` Junio C Hamano
@ 2011-03-02  6:49     ` Johannes Sixt
  0 siblings, 0 replies; 8+ messages in thread
From: Johannes Sixt @ 2011-03-02  6:49 UTC (permalink / raw
  To: Junio C Hamano; +Cc: kusmabite, git, Shawn O. Pearce

Am 3/1/2011 18:50, schrieb Junio C Hamano:
> Erik Faye-Lund <kusmabite@gmail.com> writes:
>> There's also the added complication that _open_osfhandle also seems to
>> be limited by this 2048 limit (see the third comment here:
>> http://bugs.mysql.com/bug.php?id=24509). We use this function for
>> pipes and sockets as well. This alone might be a reason to corner-case
>> test the resulting binary on Windows properly.
> 
> As long as the use of osfhandles for non filedescriptors is reasonably
> bounded, it may be enough to make the 25 slop configurable per platform,
> no?

It's not necessary to complicate things. The file descriptors acquired
with _open_osfhandle are (only) used in the implementation of pipe() and
socket() and count towards the limit no more and no less than the file
descriptors acquired with pipe() and socket() on Unix.

-- Hannes

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01  1:05 What's cooking in git.git (Feb 2011, #07; Mon, 28) Junio C Hamano
  2011-03-01  7:59 ` Jens Lehmann
  2011-03-01  8:39 ` Erik Faye-Lund
@ 2011-03-02 18:22 ` Erik Faye-Lund
  2011-03-02 18:28   ` Erik Faye-Lund
  2011-03-05 17:04 ` Michael J Gruber
  3 siblings, 1 reply; 8+ messages in thread
From: Erik Faye-Lund @ 2011-03-02 18:22 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

On Tue, Mar 1, 2011 at 2:05 AM, Junio C Hamano <gitster@pobox.com> wrote:
> * sp/maint-fd-limit (2011-02-28) 2 commits
>  - mingw: add minimum getrlimit() compatibility stub
>  - Limit file descriptors used by packs
>
> Erik, please check the made-up commit log message and sign it off.
> Will merge to 'next' after that.

Seems to work:

$ ls .git/objects/pack/*.pack | wc -l
   2049
$ git gc --auto
Auto packing the repository for optimum performance. You may also run
"git gc" manually. See "git help gc" for more information.
Counting objects: 2056, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2049/2049), done.
Writing objects: 100% (2056/2056), done.
Total 2056 (delta 2048), reused 13 (delta 5)
Removing duplicate objects: 100% (256/256), done.

So feel free to add:
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-02 18:22 ` Erik Faye-Lund
@ 2011-03-02 18:28   ` Erik Faye-Lund
  0 siblings, 0 replies; 8+ messages in thread
From: Erik Faye-Lund @ 2011-03-02 18:28 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

On Wed, Mar 2, 2011 at 7:22 PM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
> On Tue, Mar 1, 2011 at 2:05 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> * sp/maint-fd-limit (2011-02-28) 2 commits
>>  - mingw: add minimum getrlimit() compatibility stub
>>  - Limit file descriptors used by packs
>>
>> Erik, please check the made-up commit log message and sign it off.
>> Will merge to 'next' after that.
>
> Seems to work:
>
> $ ls .git/objects/pack/*.pack | wc -l
>   2049
> $ git gc --auto
> Auto packing the repository for optimum performance. You may also run
> "git gc" manually. See "git help gc" for more information.
> Counting objects: 2056, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (2049/2049), done.
> Writing objects: 100% (2056/2056), done.
> Total 2056 (delta 2048), reused 13 (delta 5)
> Removing duplicate objects: 100% (256/256), done.
>
> So feel free to add:
> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
>

Oh, and to be clear: Doing the same before these two patches gave this error:

$ git gc --auto
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 2056, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2049/2049), done.
fatal: Unable to create temporary file: Too many open files
error: failed to run repack

So the issue is indeed fixed, and it seems we don't have to bias the
resource limit.

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

* Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)
  2011-03-01  1:05 What's cooking in git.git (Feb 2011, #07; Mon, 28) Junio C Hamano
                   ` (2 preceding siblings ...)
  2011-03-02 18:22 ` Erik Faye-Lund
@ 2011-03-05 17:04 ` Michael J Gruber
  3 siblings, 0 replies; 8+ messages in thread
From: Michael J Gruber @ 2011-03-05 17:04 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

Junio C Hamano venit, vidit, dixit 01.03.2011 02:05:
...
> * mg/rev-list-one-side-only (2011-02-22) 6 commits
>  - t6007: test rev-list --cherry
>  - log --cherry: a synonym
>  - rev-list: --left/right-only are mutually exclusive
>  - rev-list: documentation and test for --left/right-only
>  - t6007: Make sure we test --cherry-pick
>  - revlist.c: introduce --left/right-only for unsymmetric picking
> 
> Will merge to 'next'; somebody may want to try losing many lines from
> format-patch before it hits 'master', though.  Hint, hint...

I was looking at f-p and also cherry, and getting second thoughts on
"--cherry" in the course of it. Would you hold back the top 2, please?

I'm wondering whether we should make "rev-list --cherry" more close to
"cherry" (which also takes up your suggestion to show equivalent
commits). With the top 2, "--cherry" lists the "+" commits only.

I'm thinking of something like "--cherry-mark" which is like
--cherry-pick but marks equivalent commits (with a new flag PATCHSAME)
rather than dropping them. Then,

git rev-list --cherry-pick --no-merges --left-right --right-only A...B

would be equivalent to

git cherry A B

but would make a lot of sense without --right-only, as well.

I have a monkey patch for that right now (to be polished) which uses "="
because "-" is taken for boundary commits already. (I also noticed "^"
for UNINTERESTING - when do they get shown??) I'm wondering about the
relation between --cherry-mark and --left-right though: Should the
former imply the latter, or should --cherry-mark always output '='? I
guess the latter.

If we were/are open to changing the characters which "git cherry" uses
as markers we could probably replace it by the invocation above. The
alternative (overload the meaning of '-') does not look like the best
solution.

Michael

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

end of thread, other threads:[~2011-03-05 17:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01  1:05 What's cooking in git.git (Feb 2011, #07; Mon, 28) Junio C Hamano
2011-03-01  7:59 ` Jens Lehmann
2011-03-01  8:39 ` Erik Faye-Lund
2011-03-01 17:50   ` Junio C Hamano
2011-03-02  6:49     ` Johannes Sixt
2011-03-02 18:22 ` Erik Faye-Lund
2011-03-02 18:28   ` Erik Faye-Lund
2011-03-05 17:04 ` Michael J Gruber

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).