Pierre Habouzit <madcoder@debian.org> writes:I do find it hard to guess _reliably_ if you're running interactively or not. For example, I've been bitten recently by "git log" running inside a pager while I was launching it non-interactively inside Emacs (as part of DVC). I don't know whether this was git's or Emacs's fault, and the fix was not too hard (GIT_PAGER=cat), but it took some of my time to get it working. Adding more interactive stuff means adding more opportunities for this kind of problems. None will be a huge problem, but each problem will take some time to be fixed (I'm pretty sure adding an interactive prompt in git-commit will break DVC's commit functionality, and we'll have to fix it). _Suggesting_ is a good idea, definitely. Something like if (number_of_unpacked > 1000 && number_of_unpacked < 10000) { printf ("more than 1000 unpacked objects. Think of running git-gc\n"); } else if (number_of_unpacked >= 10000) { printf ("HEY, WHAT THE HELL ARE YOU DOING WITH >10000 UNPACKED OBJECTS???\n" "I TOLD YOU TO REPACK\n"); } would be fine with me. The proposal to run git-gc in the background, with low priority seems to be a good idea too. But please, don't put an interactive prompt where it's not needed. -- Matthieu - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Theodore Tso | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Christoph Hellwig | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Andi Kleen | [PATCH] [0/45] x86 2.6.24 patches review I |
git: | |
| Wenji Wu | RE: A Linux TCP SACK Question |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
