26 ms·
Visual Git
- bartvk 5y agoI'm not a native speaker. The article regularly mentions 'the Git porcelain', or just 'the porcelain', what is meant by this? Do they mean it's fragile or something?
- steventhedev 5y agoGit is split into two parts: the plumbing, and the porcelain. It's a toilet metaphor. You don't directly work with the plumbing unless you really know what you're doing.
- _ph_ 5y agoThat is one thing authors of open source software should learn: while it might be fun to have clever insider terminology, when publishing, come up with terms which are unabigous to understand. Also, don't use terms which might be off-putting or even offensive to some.
- RobertRoberts 5y agoThe term "plumbing" is so common of a term in the US (maybe Britain also) to refer to "inner workings" of anything at that to be offended by it implies manufactured outrage with dubious motives. This guy is sharing his work of his own free will and deserves respect and owes no one anything at all. A recent news topic you should review on this: https://news.ycombinator.com/item?id=16631476 https://news.ycombinator.com/item?id=16631476 [Edit. Removed slightly inflammatory statement]
- _ph_ 5y agoIt is more the explicit reference to toilets, which also drags the term plumbing into it, as I cannot think of something else than sewage in this context. I don't find the term plumbing by itself off-putting. And it certainly isn't about being offended by "other people's culture". I talked to enough americans who shared my sentiment. And as we see here in the discussion, it just wasn't understood. That was the other part of what I wrote: even if the term might be completely innocent, it might be difficult to understand for outsiders. It is not, that I haven't been guilty myself of bad naming in my projects. It can be fun or even convenient to come up with "insider" terms. But as soon as you have to communicate with outsiders to the project, the tend to bite you, even if there is no offensiveness about it. Naming is one of the hard problems in software engineering :)
- diesal11 5y agoNaming things can be hard. How would you describe the distinction between these two command types?
- _ph_ 5y agoHow about "infrastructure" and "interface"?
- zufallsheld 5y agoInfrastructure is certainly not unambiguous here.
- bmn__ 5y agoLet's see how this sounds when we flip it around. "That is one thing news aggregator commenters should learn: while it might be fun to just put one's ignorance on display for the world to see, when publishing, come up with a modicum of curiosity and willingness to learn about and engage with for the craft and its culture that one is part of."
- _ph_ 5y agoSorry, I have difficulties parsing your statement. While the term plumbing might be understandable by itself, porcellain certainly isn't, until you are explained the metaphor of porcellain and plumbing in this context. It just isn't efficient to come up with new terms for things which have to explained to any newcome to the project. As I wrote in another post, it is nothing I haven't been guilty of myself, but am trying to avoid.
- bmn__ 5y ago> I have difficulties parsing your statement The underlying idea is: as a hacker, and as a first step, the onus is on you to come up with the explanation‡ yourself, not expect the burden of education on somebody else's back to be carried towards you. Same goes for other (potential) git users in a similar situation. It is okay to disagree with this, but then one would mark oneself as a member of the out-group. HTH; HAND ‡ We are blessed to live in the information age. The explanation is abundant and easy to find, literally within seconds: <https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Po...> <https://stackoverflow.com/questions/6976473/what-does-the-term-porcelain-mean-in-git https://stackoverflow.com/questions/6976473/what-does-the-te...>
- pintxo 5y agoCommunication is dependent on context. If two people do not share any context, nothing will be unambiguous. As sender it's impossible to know the context off all recipients beforehand.
- _ph_ 5y agoWithout any context, communication is difficult indeed. But the context here is general IT, a lot of context is established there and can be anticipated by any "sender".
- tubby12345 5y agoPeople are so entitled that they demand 1000s of hours of free (OSS) dev and aesthetics that please them. If the name is off-putting to you, you're free not to use it. If lots of people agree with you (that the off-putting name is more significant than the contribution) then the market will have spoken and the tool will die. But if it doesn't die then you should probably reconsider your hang-up.
- _ph_ 5y agoYou completely misunderstood the intention of my posting. I feel no entitlement to use git. My posting was meant as a comment about practises in programming. Being a long-term developer, I know about all the temptations about funny names, insider jokes, sometimes inappropriate humor. And yes, they are can be fun. But at some point it might be a good idea not to expose all of this to the public. That it is a good idea to try to use appropriate terms for things. Makes it easier to understand.
- tubby12345 5y agoAnd you completely misunderstood the intention of my response: people should try to look beyond their own fragile sensibilities the contribution rather than the aesthetics. Barring that they should just pass (instead of criticizing).
- rswail 5y agoThe guy came up with git over a weekend. The same guy wrote an operating system and named it after himself. In-jokes and easter eggs are famous in software engineering. Linus is the original author of two foundational pieces of software technology in use today. I think he can name things whatever he wants. If you're offended by the terminology of plumbing and porcelain because you can only think of toilets, then I suggest you look around your bathroom and consider what the basins are made of, or the bidet, or some bathtubs. It's a perfectly valid extension of the "plumbing" term meaning the underlying infrastructure, while porcelain is the way users interact with the system. When I do "man git" the first two lines are: NAME git - the stupid content tracker Further down in that manpage is: GIT COMMANDS We divide Git into high level ("porcelain") commands and low level ("plumbing") commands.
- watt 5y agoThe porcelain is where you shit into (the "porcelain throne"), and it implies that the pipes too are all full of shit. I think this terminology was not well thought through. It's somewhat degrading.
- _ph_ 5y agoThanks, that I am not the only one that is put off by the terminology.
- austinjp 5y agoWell, the bath and the sink are also porcelain. The plumbing is hidden (unless you go looking for it) while the porcelain is what you interact with day-to-day.
- HelloNurse 5y agoAnd even more meaningfully for tool authors, the plumbing is very long-lived and general-purpose, with basic objectives like not leaking and not breaking down, while the porcelain is rather easily replaceable, possibly specialized, "smaller" but more complex than plumbing, with meaningful user interface (in Git's case, specifically, designing commands that are unlikely to do harm, easy to understand and efficient after they have been learned) and significant dependence on tastes and environments.
- omnicognate 5y agoIt's called git, and Linus knew exactly what he was doing when he named it. I doubt he cares a jot if the plumbing/porcelain metaphor icks you out a bit.
- andai 5y ago> I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'Git'. https://git.wiki.kernel.org/index.php/GitFaq#Why_the_.27Git.27_name.3F https://git.wiki.kernel.org/index.php/GitFaq#Why_the_.27Git....
- 5y ago
- p2t2p 5y agoIt’s jargon. There are two layers of cli commands in Git. One - user friendly like “git commit”, that does abstract things like commits, diffs, etc. It is called “porcelain”. Another level is low level commands. They are used by “porcelain” level commands to actually manipulate Git’s database. They allow to create objects, change objects, cause re-packing, manipulate refs (branches and tags but more than just that), manipulate object types and look inside objects.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- dankle 5y ago> Anyways, I plan to eventually open source it. There's a lot of stuff in the code I want to clean up (things like setting up the build environment, some of the uglier hacks, etc.) before I feel comfortable releasing it to the public I hate seeing this. We all write some ugly hacks. Just release it and work on it in public, it's fine.
- robscallsign 5y agoI second this. If your goal is to release it publically, chances are most of your dirty laundry and uglier hacks are either pain points that are systemically hard (installation, different OS versions/platform, dependencies, build environment) that everyone suffers with in which case the community can help, or it's in a part of the code that migth not be a core competency of yours, and so the community can also help.
- dotancohen 5y ago> chances are most of your dirty laundry and uglier hacks are either pain points that are systemically > hard (installation, different OS versions/platform, dependencies, build environment) that everyone suffers with To add to this point, I would love to see the commits that do resolve these issues. I could learn from them too.
- berkes 5y agoIt's really just guessing though. Maybe that "dirty laundry", in this case, is security-through-obscurity (maybe even with a TODO: this is insecure, fix it) or hardcoded values such as keys or ids that might compromise stability or security. E.g. I normally open source everything from day one, but keep my Ansible (and before Chef) stuff behind closed doors: it's full of commits that would compromise security. E.g. "quick hardcoded list of private IP-addresses that can access the reporting Database until we have the VPC coupled to a VPN."
- Vvic 5y agoI found it odd seeing this too. Isn't it the goal of open-sourcing, using git and this software?
- baby 5y agoCheck out sublime merge if you want a GUI to use git. I use it all the time!
- dekken_ 5y ago> I use it all the time! ditto
- TheRealDunkirk 5y agoThey'll have to pry Sublime Text from my cold, dead fingers. I want to like Merge, but I find it's UI to be ugly and difficult. I'm still using Tower, but just got soaked for a very expensive upgrade to Kaleidoscope. UI aside, does Merge have a good diff tool built in?
- TedDoesntTalk 5y ago> I don't think anyone wants to go back to the bear skins and stone knives of centralized version control they can't effectively use from a modern system. When working on a small team with everyone in the same office, there was nothing wrong with cvs, rcs, SourceSafe, Subversion, etc.
- mkbosmans 5y agoWhen I needed to work with a subversion the last time, I always found myself using git and git-svn when interacting with the version control system. It's not just the familiarity of the commands, but also the enormous flexibility you get in doing local operations to create and amend your commit history. And the speed of operations of course.
- jiggawatts 5y agoIt's a classic case of a system designed for the largest scales being adopted by 2-person teams because it's "hip to be just like the big boys". Git was intended for distributed development amongst literally tens of thousands if not hundreds of thousands of programmers. Centralised SCMs worked just fine for typical dev teams of 2-15 people. I've rarely seen a team that actually utilises even 10% of Git's features. Conversely, when they accidentally trip over the inherent complexity of a distributed SCM they always cause a giant mess and end up "fixing" it in bad ways. https://xkcd.com/1597/ https://xkcd.com/1597/
- xcambar 5y agoGit has become so ubiquitous that I'd find it weird if a recent project was using anything else. Even if most devs don't know even 10% of it (I'm in this category and I don't care), same goes with my car: It can drive very fast but I limit its speed to something I can control. The analogy is a bit weak but in general I see no problem not using something to it's full potential.
- kamray23 5y agoEh, Git works, which is all it has to do. The reason you see typical small dev teams use Git is because they're familiar enough with it from dealing with FOSS. And when you are doing FOSS, there's almost no contest – Git destroys the competition for n-person teams when n → ∞. Besides, it's not even all that complex, there's just an abundance of bad information talking about "diffs" and "branches containing commits" and confusion over the word 'tracking', when most of that is either a convenient representation or an internal implementation detail that doesn't matter at all to the user. Also, compose key flex.
- b215826 5y agoHow does this compare to gitk?
- mhb 5y agoOr TortoiseGit?
- HelloNurse 5y agoIt doesn't. It's a plugin for old Microsoft developer tools rather than a standalone application.
- _hao 5y agoI've worked with the Git CLI until I discovered GitKraken. Haven't touched the CLI since. It's one of the few software products I pay for without any regrets.
- shantnutiwari 5y agoMy problem with Gitkraken is-- it forces you to create an account and jump thru hoops even for the trial. I much prefer SmartGit -- you can try it without an account
- ethomson 5y agotl;dr: this is a MSCCI plug-in for git, for compatibility with (quite) old versions of Visual Studio. This is impressive work. I've used the MSCCI API on several projects - MSCCI is the old version control interface for Visual Studio. MSCCI is the "Microsoft Source Code Control Interface" and was built to integrate Microsoft Visual SourceSafe into Visual Studio. This was because VSS had a checkout/edit/checkin model by default, so files needed to be explicitly checked out from the server (and were locked) so that they could be modified. MSCCI allowed you to paper over this - as soon as you started typing in the editor, you'd get a MSCCI event and you could do the check out. Unfortunately, the API is really focused on VSS integration. Trying to bring another version control system into this API is... painful. This was - always - the worst part of the UI to work on in SourceOffSite and Vault. Thankfully, more modern versions of Visual Studio dropped MSCCI (by "more modern" I mean 2005 - adding Team Foundation Server integration to Visual Studio meant that MSCCI was finally deprecated and a new API was added). However, legacy development projects exist for older Microsoft platforms and using older Visual Studio versions. So I'm both surprised to see that this exists, and am rather heartened by its existence. (But I still feel sorry for anybody who has to use it.)
- marcodiego 5y agoThose non anti-aliased fonts in screenshots give me the reverse feeling of nostalgia.
- monological 5y agoIf you like this, you'll love Tower. https://www.git-tower.com/mac https://www.git-tower.com/mac
- gunshai 5y agoAm I wrong, but doesn't that seem EXPENSIVE? 69 per user for a year for what seems like 1 feature or am I missing something?
- deleted 5y ago[deleted]
- tvb12 5y agoI went through the lessons at https://learngitbranching.js.org/ https://learngitbranching.js.org/ when I was first learning git. Afterwards, I went looking for a program that would create a similar visual representation of the branches... and I'm still looking. There's a big listing of gui clients on the git website here: https://git-scm.com/downloads/guis https://git-scm.com/downloads/guis. One obstacle I didn't expect to face is that many don't have Linux versions. GitUp is probably the closest to what I'm looking for, but it's Mac only. A windows-only program, gmaster, also caught my eye. For the most part, I've used GitVine and Ungit. I've found both helpful (I don't know how people keep track of the "paths" of their repositories without seeing them), but I've run into issues with how the commits are spaced out when the trees are rendered on both programs. GitVine occasionally criss-crosses the "parent" pointer arrows as though they were overlapping, which is really confusing. Ungit hasn't overlapped them, yet, but it spaces the commits kind of strangely. HEAD will be right at the top, but then I'll have to scroll an entire page to reach the parent. Meanwhile, a nearby branch will be shot diagonally way out to the far right (I think this happens because there are branches a few screens down that are "occupying" that horizontal space). I've found zooming in and out to be the better way to travel around.