Better HN
topnewbestaskshowjobs
Log inSign up

develop7

86 karma · joined Jan 26, 2011 (15y ago) · 87 submissions

[ my public key: https://keybase.io/develop7; my proof: https://keybase.io/develop7/sigs/Insk_DK7LvaidA5-eAq-RkT3Rl0a87-wV3k7KRDrw44 ]
Submissions

comment 12y ago · link · parent

well, all these points valid for all DVCS, not just Git.

comment 12y ago · link · parent

despite Go isn't actually an answer, good for him anyway

comment 12y ago · link · parent

Everything is better with Bluetoo…^W Git

comment 12y ago · link · parent

well it could be named git-unfuck (1)

comment 12y ago · link · parent

It does rely on history? Well, it won't work for me then — in my history there's only frequently-used commands.

comment 12y ago · link · parent

Soon in Mercurial. Years later (probably never) in Git.

comment 13y ago · link · parent

> to be able to go back to a previous state whenever I need to

as I've said, old commits are backed up.

> This works great with Git's reflog.

except git reflog is cleaned on git gc

Not mentioning http://mercurial.selenic.com/wiki/ChangesetEvolution feature is being in development.

> there was some command that left .orig files lying around

Only way .orig files may pop up is failure to replay rebased commit(s). No way these are backups — their purpose is to make user able to fix things and continue.

comment 13y ago · link · parent

Your rebase-based workflow is easily achievable with Mercurial. And there's even --outgoing switch in histedit.

> Histedit extension which is meant to provide this feature has warnings all over the place

Ignore them — you do know, what are you doing, right?

> changeset backups written to locations in the working tree

That's not true. Backups are written to .hg/strip-backup directory, which isn't tracked.

comment 13y ago · link · parent

> Overwhelming at times? Absolutely.

"At times"? Well, maybe, if you have plenty of time, no paid work to do and no deadline approaching.

comment 13y ago · link · parent

> Google stuff as you go.

Are you implying git man pages are useless to newcomer?

comment 13y ago · link · parent

Yup, instead of pushing git core devs into adopting at least mercurial "phases" concept or thinking on another way to solve this problem, reposting "do not handle it this way" guidelines is preferred.

comment 13y ago · link · parent

> _the missing piece that keeps this from being useful is that they can't keep their fork up to date using github.com_

yep, a year ago removed "Fork Queue" would come in handy there.

comment 13y ago · link · parent

Why exactly should I learn how git works? Other DVCS (yes, they do exist!) do not require me to learn their guts to be used effectively — only read man pages. Which, in case of git, are "one big almighty “fuck you”" (© Steve Bennett) — useless for end user (not git developer).

comment 13y ago · link · parent

I'm pretty much aware of semantic model of distributed version control. Problem is git introduces new concepts (useless outside of git) which are widely used with and without cause.

Check out various short descriptions of push command:

* git — "Update remote refs along with associated objects"

* mercurial — "push changes to the specified destination"

* bzr — "Update a mirror of this branch"

* veracity — "Push committed changes to another repository instance"

* fossil — "Push changes in the local repository over into a remote repository"

As you may want to see, all of them except first one, are easily readable even by person used some VCS before. But not git — to understand what push command does, you have to have gitglossary opened in front of you.

> All DVCS systems involve creating and editing a series of changes to a directory tree

git is not — it stores only snapshots and changes are calculated every time you want to see them.

> the revision history is a document that you're trying to edit.

It is revision history, not "a document". To be precise, in DVCS it is directed (except darcs) acyclic graph, aka DAG of source code revisions.

> Those concepts map directly to the HTML wire format, so in practice, you'll end up learning that

One and only VCS (of 7 I have used) I've ended up learning guts was Git.

> They're easier to use for beginners, but they're more fragile and their internal formats are more obscure.

Which way are they fragile exactly? Could you please back this statement up with some examples?

And why one should care about VCS internals unless he's VCS (plugin) developer?

comment 13y ago · link · parent

Of course, all they had to read and follow was "contributing to sqlalchemy" manual.

comment 13y ago · link · parent

> you weren't properly taught how git actually works

I'm using git (well, forced to, in fact) since 2009 and I've learned its' guts. And I still can't see why should I care of .git contents unless I'm git developer.

Ask yourself this: how come mercurial/bzr/fossil/veracity users aren't aware of those DVCS' internals?

comment 13y ago · link · parent

1. What a huge saving — 0,002¢ per repo copy. Don't spend it all in one place.

2. Bookmarks is core feature since March 2011. This basically means those who pushed "move to Git" decision, haven't checked if anything was updated in Mercurial (and with bookmarks in particular) since then at least. This is pretty understandable — it is known that only software gets updated is one you're paying attention to, others don't.

3. As ezquerra mentioned, those extensions Mike is probably referring to, are shipped with Mercurial, and are enabled with only single line added to .hgrc. Not mentioning those extensions do not _emulate_ Git features, they _reproduce_ it.

4. Only reason makes sense.

comment 13y ago · link · parent

Well, git sucks a lot, but switch to CVCS instead? No way.

comment 13y ago · link · parent

No, git doesn't track renames — git _guesses_ them

comment 13y ago · link · parent

Create a pull request to https://bitbucket.org/sjl/stevelosh

comment 13y ago · link · parent

> git is only used by expert users

1 235 026 expert users, my eye

comment 13y ago · link · parent

It's v27.something-dev.

comment 13y ago · link · parent

well, in fact they do support it — there's Widevine plugin in chrome://plugins/ (/opt/google/chrome/libwidevinecdmadapter.so)

comment 13y ago · link · parent

> The patterns in .gitignore and .gitattributes files can have /, as a pattern that matches 0 or more levels of subdirectory.

Mercurial had this for ages.

comment 14y ago · link · parent

is there a complete list of ways I should avoid to hold git?

comment 14y ago · link · parent

"avoid holding it that way"?

comment 15y ago · link · parent

You're doing everything wrong. Literally everything.
123