git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (Feb 2011, #05; Wed, 23)

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 24, 2011, 00:32 UTC
Message-ID
<AANLkTinUtqJJHNyS9CxrC=VnS87v=GH=pOw9yr4r=pii@mail.gmail.com>
In-Reply-To
<7v1v2y5o3p.fsf@alter.siamese.dyndns.org>
On Thu, Feb 24, 2011 at 00:26, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> * ab/i18n (2011-02-22) 73 commits
> [...]
>
> Re^4-roll, coordinated between Ævar and Jonathan.
>
> 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, so please lend extra sets
> of eyeballs on an earlier ones to make sure they are sane (I thought they
> were, but I am far from perfect).

Great that we're moving this forward. After this has made it to next (or master) I'm going to fix this up a bit and submit the shellscript i18n-ize patches:

    https://github.com/avar/git/compare/5bd8b10...8fd2407
Open issues:
   * Write documentation for git-sh-i18n.sh and git-sh-i18n--envsubst
     like we have for git-sh-setup (already in WIP form).
   * git-sh-i18n--envsubst is still too fat:
        $ ldd -r git-sh-i18n--envsubst
            linux-vdso.so.1 =>  (0x00007fffc60fd000)
            libz.so.1 => /usr/lib/libz.so.1 (0x00007f25cff9e000)
            libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8
(0x00007f25cfbfd000)
            libpthread.so.0 => /lib/libpthread.so.0 (0x00007f25cf9e0000)
            libc.so.6 => /lib/libc.so.6 (0x00007f25cf67f000)
            libdl.so.2 => /lib/libdl.so.2 (0x00007f25cf47b000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f25d01c0000)
     It only needs to link to libc, but I didn't find out when I last
     checked how to convince the Makefile to only link against
     that. Help welcome :)
   * Deal with the changes in 92c62a3f4f93432c0c82e3031a9e64e03ba290f7:
        $ git --no-pager  grep -A1 abomination *.sh
        git-pull.sh:            # XXX: This is an abomination
        git-pull.sh-            require_clean_work_tree "pull with
rebase" "Please commit or stash them."
     The changes Ramkumar Ramachandra made in 92c62a3f4f, while good,
     are hard to square with i18n.
     I think I'll just leave those bits untranslated for now and deal
     with them later, since I'm trying to keep this minimal.

And then there's the issue that unlike the C patches these will not be a no-op that'll be optimized away by the compiler. We'll be calling an external program for displaying messages. While this is a trivial cost on Unix (especially in the context we're using it, i.e. not in tight loops) it's more expensive on Windows.

I don't see any way to deal with that short of implementing some pre-processor, but I think the cost is worth it, but others might disagree of course.

Anyway, I can submit these patches (around 53) real soon, or wait until the current series settles. It's the same to me, which would you prefer?

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

Given that this solves someone's problem I don't think there's any harm in letting it through. The code and overall behavior is somewhat nasty, but then so is the rest of git-cvs*.perl, so meh.

> * jc/checkout-orphan-warning (2011-02-18) 1 commit
>  - commit: give final warning when reattaching HEAD to leave commits behind
I like this sort of thing.

Generally speaking I don't mind Git being more friendly and verbose about this sort of thing. I.e. for common pitfalls print a few lines of help because it'll help more than it hurts. I think we've been to conservative about that in the past.

There's a grammar error here though if I'm not mistaken:
    w git ((f11f53c...) $%) $ ./git co pu
    Warning: you are leaving 1 commit behind that are not connected to
    any of your branches:

For the singular this should be "1 commit behind which is not corrected to any of your branches".

We're also being somewhat inaccurate by omission here, since we won't give this warning if the commit is reachable from any named referenc, i.e. if the user just tagged it. So perhaps this should say something about "not reachable from any named reference" or something, but then again that would confuse the sort of users that need this the most.

> * jh/maint-do-not-track-non-branches (2011-02-17) 1 commit
>  - branch/checkout --track: Ensure that upstream branch is indeed a branch
I like it.
Show 9 quoted lines
> * 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
>
> The above three all seemed sensible improvements.
Agreed.
> * 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
Looks good, and maybe I'll debug the Perl one of these days.
Show 10 quoted lines
> * 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.

I really like this as noted elsewhere. But it seems that it would go down better if the helper was submitted later on.

Show 6 quoted lines
> * jh/push-default-upstream-configname (2011-02-16) 1 commit
>  (merged to 'next' on 2011-02-23 at b5c25fa)
>  + push.default: Rename 'tracking' to 'upstream'
>
> This is not "renaming" in the sense that breaks existing practice, but
> giving a new official name and deprecating the existing one.
I like the new name.
Show 5 quoted lines
> * mo/perl-bidi-pipe-envfix (2011-02-15) 1 commit
>  (merged to 'next' on 2011-02-15 at c36e816)
>  + perl: command_bidi_pipe() method should set-up git environmens
>
> Looked reasonable.
Yeah, but fix up the typo in the subject. Should be "environments" :)
Previous: Johan HerlandNext: Junio C Hamano
Message 19 of 46 in “What's cooking in git.git (Feb 2011, #05; Wed, 23)”
  1. Junio C HamanoFeb 23, 2011
  2. ab/i18n (What's cooking in git.git (Feb 2011, #05; Wed, 23))Jonathan Nieder, Feb 23, 2011
  3. Junio C HamanoFeb 24, 2011
  4. Ævar Arnfjörð BjarmasonFeb 24, 2011
  5. Jonathan NiederFeb 24, 2011
  6. Ævar Arnfjörð BjarmasonFeb 24, 2011
  7. Jonathan NiederFeb 24, 2011
  8. Jonathan NiederFeb 24, 2011
  9. Ævar Arnfjörð BjarmasonFeb 25, 2011
  10. Jonathan NiederFeb 26, 2011
  11. Jonathan NiederFeb 24, 2011
  12. Erik Faye-LundFeb 24, 2011
  13. Jonathan NiederFeb 24, 2011
  14. Junio C HamanoFeb 24, 2011
  15. Ævar Arnfjörð BjarmasonFeb 24, 2011
  16. Johan HerlandFeb 23, 2011
  17. Junio C HamanoFeb 24, 2011
  18. Johan HerlandFeb 24, 2011
  19. Ævar Arnfjörð BjarmasonFeb 24, 2011
  20. Junio C HamanoFeb 24, 2011
  21. Ævar Arnfjörð BjarmasonFeb 24, 2011
  22. Junio C HamanoFeb 24, 2011
  23. Ævar Arnfjörð BjarmasonFeb 24, 2011
  24. Erik Faye-LundFeb 24, 2011
  25. Ævar Arnfjörð BjarmasonFeb 24, 2011
  26. Jonathan NiederFeb 24, 2011
  27. Johannes SchindelinFeb 25, 2011
  28. Kirill SmelkovFeb 25, 2011
  29. Johannes SchindelinFeb 25, 2011
  30. Kirill SmelkovFeb 25, 2011
  31. Johannes SchindelinFeb 25, 2011
  32. Kirill SmelkovFeb 26, 2011
  33. Kirill SmelkovFeb 26, 2011
  34. cross-compiling msys-1.0.dll, was Re: What's cooking in git.git (Feb 2011, #05; Wed, 23)Johannes Schindelin, Feb 26, 2011
  35. Kirill SmelkovMar 12, 2011
  36. Johannes SchindelinMar 12, 2011
  37. Johannes SchindelinFeb 27, 2011
  38. Kirill SmelkovMar 12, 2011
  39. Adding Beyond Compare as a merge tool, was: Re: What's cooking in git.git (Feb 2011, #05; Wed, 23)Sebastian Schuberth, Feb 26, 2011
  40. Junio C HamanoFeb 26, 2011
  41. Sebastian SchuberthFeb 26, 2011
  42. Chris PackhamFeb 27, 2011
  43. Junio C HamanoFeb 27, 2011
  44. Sebastian SchuberthFeb 27, 2011
  45. Sebastian SchuberthFeb 27, 2011
  46. Sebastian SchuberthFeb 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.