10 ms·
Highlights from Git 2.34
- IshKebab 5y ago> ort (short for “ostensibly recursive‘s twin”) Continuing Git's famously clear naming I see!
- DON-MAC 5y agoCan't mention git command naming without linking to the parody Git Man Page Generator[0]. [0]: https://git-man-page-generator.lokaltog.net/ https://git-man-page-generator.lokaltog.net/
- newsbinator 5y ago> git-chase-submodule chases remote submodules using downstream shells, while remoting fitting patches to impale the given submodules. > When COMMIT_ID_DEFINE_LOCAL_CACHE is not patched, the most recent counted grafts chased by submodules in a subtree, but that are not in other-bundle, may be chased by an active head ref. Using sub-recursed or pre-massaged flags only cautiously grips the tag, except when otherwise noted.
- teddyh 5y agoThey did it again. GitHub “stealing” the Git release announcement, contributing to the Git/GitHub confusion. Comments from the last time: https://news.ycombinator.com/item?id=28207168 https://news.ycombinator.com/item?id=28207168 For those who don’t know: GitHub is owned by Microsoft, a historical (and current) adversary of all things not Microsoft, particularly Linux¹. Git, the tool, is not made by GitHub; GitHub is a web service which is using Git. Git, the tool, was originally made by the person who also originally made (and currently manages) Linux, and the purpose of Git was to manage the development of Linux itself. 1. https://en.wikipedia.org/wiki/Halloween_documents https://en.wikipedia.org/wiki/Halloween_documents
- judge2020 5y agoIMO GitHub posting these is fine since they're headlined "Highlights from Git 2.3x", but the last discussion incorrectly just said "Git 2.33", which is likely where the confusion came from. Hopefully this post will keep the distinction front-and-center.
- teddyh 5y agoIf your name is GitHub and you announce a new release of Git, which your product GitHub uses extentively, and you do not explicitly and clearly mention that you do not have any role in making Git itself, then you are lying by omission; deliberately misinforming people who will naturally assume, given no information to the contrary, that GitHub are the makers of Git. I think that most people are already under the misapprehension that Git and GitHub are the same thing. This style of deliberate confusion from GitHub must be seen to be by design. They are Microsoft; they do not get the benefit of the doubt.
- avarun 5y ago> The open source Git project just released Git 2.34 with features and bug fixes from over 109 contributors, 29 of them new. It's pretty clear they're talking about a separate project.
- bennyp101 5y agoDo you really think that most people that use git and GitHub are under the misapprehension that Git and GitHub are the same thing? Really? This seems just very much an anti Microsoft view, especially with that final sentence.
- morelisp 5y ago> Do you really think that most people that use git and GitHub are under the misapprehension that Git and GitHub are the same thing? Yeah actually, a lot are. There are also a lot of GitHub users who don't know what git is at all. I don't think this blog post is going to further misinform them though, they also don't read technical blog posts.
- er4hn 5y agoIt's really neat that ssh keys can be used for signing commits, but I'm not a big fan of this. When auditing a source repository you want to see how commits are signed over time. In other words you have a key X which is valid at time Y. As Y changes, key X will change as well. To audit a repo, you need to know the history of what key X was valid at time Y. With GPG you can set up a hierarchy of commit signing keys which have defined lifetimes and are all subordinate to a master key which you do not use for signing (and hopefully keep somewhere secure). One irritant is that the major git-as-a-service products, i.e. github + gitlab, do not respect the use of GPG keys as something varying over time or subordinate to a master key. Instead they let you set a current active key and mark on their own if it was verified at the time. If you want to validate the repository's security yourself, you don't have the proper information to do so. The use of ssh keys as signing keys furthers this incorrect usage of a single key as something that does not vary over time. You can use ssh certificates as a way to have a hierarchy, but that still doesn't acknowledge that there is historical data of note. Now, a logical question is: If each git commit is the summation of everything before, why does historical data matter? Why can't I just trust the git{hub,lab} when it says it was "Verified" at the time? A few reasons: - Github allows someone logged in to make edits via their web editor which they helpfully sign with a universal github key that is always verified. So if your AuthN is bad, that is a problem. - You are trusting that your git-as-a-service provider will never have their repositories tampered with and your org will just download the newest version of the repo. - It relies on git-as-a-service providers to track this. If you aren't using a managed service provider you need to roll your own auditing tools.
- hannob 5y ago> When auditing a source repository you want to see how commits are signed over time. I understand your reasoning and the idea behind GPG and everything, but here's my challenge to all of this: Has this ever happened? Like, the scenario we're talking about is that at some point some bad code, maybe a backdoor, got introduced into a code repo, and it later is discovered and someone launches an investigation. And they find out "this was committed by XYZ but XYZ claims he didn't do it". I don't remember any such incident ever. Given that I feel a slightly weaker form with SSH keys may still be justified. (And it is still easily conceivable to have some out-of-band-metadata, e.g. a project that feels this is important could just have a list of developer SSH key fingerprints within the repo and thus have the backlog of who's keys were relevant at what point in time.)
- ublaze 5y agoI interviewed one of the creators of the Git sparse index a while back: https://www.softwareatscale.dev/p/software-at-scale-32-derrick-stolee https://www.softwareatscale.dev/p/software-at-scale-32-derri... which had some interesting tidbits.
- sigzero 5y agoIt doesn't look like you can actually get that release yet.
- bastardoperator 5y agoIt's there now: https://mirrors.edge.kernel.org/pub/software/scm/git/ https://mirrors.edge.kernel.org/pub/software/scm/git/ git-2.34.0.tar.gz 15-Nov-2021 16:48 10M git-2.34.0.tar.sign 15-Nov-2021 16:48 566 git-2.34.0.tar.xz 15-Nov-2021 16:48 6M
- childintime 5y agoRelated: it's been a year since Pijul (https://pijul.org https://pijul.org) began working towards 1.0 (https://news.ycombinator.com/item?id=25032956 https://news.ycombinator.com/item?id=25032956). Seems to be coming along nicely, they're in alpha now and it's showing.
- kadoban 5y agoI keep checking in on that. In my case what I need to start seriously using it is two-way git interop. I need to be able to work in pijul locally and "publish" somehow to git. So far that still doesn't seem to exist.
- martinvonz 5y agoIf the Pijul feature you care most about is "first-class conflicts", you may want to check out my VCS: https://github.com/martinvonz/jj https://github.com/martinvonz/jj. It has git interop.
- IshKebab 5y agoThat looks very cool, and very wise to use git as the actual storage system. Means you have a chance of people actually using it. I have one question: how do changes to files in the working copy automatically update the current commit hash? Do you just calculate it on demand, and then actually make the commit when some command would move to different commit (`jj switch someotherbranch` or whatever)?
- martinvonz 5y agoAny command that depends on the working copy commit will first check if it needs to create a new commit from the working copy contents. So when you run e.g. `jj status`, it will amend the current working copy commit if there are changes. In case you're thinking that that seems slow, it's not really significant at least up to git.git scale. For larger repos, I plan to rely on something like watchman.
- 5y ago
- avar 5y agoI've got some patches in this release. If anyone's got question that someone who contributes to git might be able to answer I'd love to help. Are there any specific things that git does that you wish were done better? I probably won't be able to help with very generic things like "it's complex", but if there's specific drawbacks in some particular commands I might be able to fix them. Or anything else, I'll monitor this thread while there's interest.
- Lammy 5y ago> Are there any specific things that git does that you wish were done better? I wish `git-log`'s `--follow` wasn't optional so GitHub et al would show the complete history for files I `git mv`. Mercurial got this one right :)
- avar 5y agoYeah, me to. I think that was always the plan, but nobody's had the time to go back, re-visit it, and make it so. I'd say that most of the work of driving features forward in git is hunting down those various edge cases, taking the time to understand them, and explaining them to others. So if anyone's interested in flipping that particular switch it's very open to first-time contributions.
- henrikeh 5y agoWell, since you ask. `git add -i` has different "escape"/"exit" semantics for different actions. If I want to quit/escape adding a patch in the interactive mode I type `q` and then enter. If I want to quit/escape the interactive add subcommand I type `q` and then enter. But if I want to quit the `update`, `untracked` etc. I have to enter nothing and then press enter. It would be such a wonderful thing if it also accepted `q` so my muscle "memory" is correct. I looked into changing this once, but it is written in shell and Perl, which I don't know enough about to figure out.
- avar 5y agoAside from the UX question you've got, which I haven't had time to look at (sorry). We've shipped a pure C version of "add -i" that's been on if you've enabled feature.experimental=true since v2.29.0. It looks like the ball may have been dropped on opting users in to it by default, but in any case there's numerous bugs in "git add -p" and "git add -i" that got fixed along the way, and fixing existing ones should be a lot easier now. Note: I've also worked on the perl compiler/interpreter in a past life, so it's not that I'm afraid of hacking on Perl, but doing so in the context of the Git project is and was always particularly painful. If something's written in C you could use all the APIs git had internally, but anything in .sh or .perl was usually stuck parsing text, or reinventing the wheel.
- jakub_g 5y agoMajor: A new default merge strategy > In Git 2.34, ort is now the default merge strategy, so you should notice faster merges with fewer bugs just by upgrading > a rewrite allowed Git to implement a merge strategy that doesn’t operate on the index
- thriftwy 5y agoGit is awesome but it would really be great if they sunsetted merge instead of putting lipstick on it. Merge of two good commits will silently produce bad commit. Merges are not repeatable and can't be reasoned about. Merges get in a way of git bisect. Merge makes simple "git log" not contain all the log. Good luck cherry-picking a merge commit. Merge makes a commit which has important changes not apply to any specific revision of git log. It's an enormous foot gun and a single contributor may inadvertenly taint your repository for life. Merge is a make-believe working set operation, like if you could pretend to add apple to mango and get a pomelo. Merge is VCS analog of lead acetate. Something you have no reason to ever put in your mouth.
- joconde 5y agoHow else could we take two diverging branches and mix them back into one?
- pietherr 5y ago"... the speedup is over 9000x" :)
- deleted 5y ago[deleted]
- kazinator 5y agoIt would be fantastic if someone maintained a bugfix only fork of git 1.7.x.
- will4274 5y ago? What's special about this version?
- kazinator 5y agoWorks fine; I have no issues with old installations that still use it.
- mhio 5y agoIs it the other side then? Do you have issues with 2.x releases? btw rhel maintains a 1.8.x release.
- kazinator 5y ago> Do you have issues with 2.x releases? Possibly; I've been hearing disturbing things about developments like different hash algorithms, and repositories being generated that older versions of git cannot read. I'm nervous about creating a new central repository with newer git.
- Too 5y agoIf it works fine, why would you need a “bugfix fork”?
- kazinator 5y agoThere has to be a fork so that the software being used is identified by a formal tag pointing at a specific commit, and this is backed by some sort of project commitment to put out a commit, if necessary. It works fine in that I'm not running into issues and not missing features, not in the sense that I proved that it's free of defects; I don't require a fork that has any new commits. Surely, bugs have been found between that version and now, some of which can be meaningfully backported. Programs can break simply because of all the other moving parts in the environments that are out there; it's a fact of life nowadays that software needs to have a maintenance plan to be viable. A compiler, library or kernel upgrade can expose some latent problem in a program.