Hacker News new | ask | show | jobs
by throw94040 476 days ago
》The simplest kind of git bundle – a full bundle – is a whole git repository, wrapped up into a single file.

Git repo can have executable code! Git hooks are shell commands stored in dir ".git/hooks" executed on events such as merge, commit... That is not duplicated by git clone, I am not sure about bundles. But I would be VERY careful to accept something like compressed git repo from anyone!

4 comments

As you said, git clone wont copy it, and you don't get a zip of a repo, you get a remote that you can clone/ pull from.
Bundles only include things that can be in the pack files: the git objects `git clone` would pull.
Sorry, did you have to use a Wide character? There is a Narrow version of it: ⟫ U+27EB MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET.
Does it cause problems on mobile or something?
Well, no, I've just spent some time recently on wrangling narrow and wide characters in the terminal emulators (and fonts they use) and I guess I am now somewhat more sensitive to the suspiciously looking whitespace.

Do you know that, for instance, that the playing card symbols in the Unicode are narrow characters, the terminal emulators treat them so yet the fonts draw them as 1.5-cells wide which causes ugly and annoying overlaps?

Yes, that could be annoying. I'd imagine that you'd want to use only fixed-width fonts in a terminal emulator (where double-widths are ok, but not 1.5). If a fixed-width font has any glyphs other than single- and double-width then that's a problem.
Most fixed-width fonts don't have glyphs for all of the Unicode code points, you see, so the terminal emulators use fallback fonts, and it's seems to almost impossible to learn what fonts exactly they use. I believe in my case those 1.5-width glyphs were taken from the DejaVu Sans font (the non-mono version) but it's hard to be certain. In any case, I was quite tilted that I had to go back to using 10♠, K♦ etc. instead of U+1F0AA and U+1F0CE in my TUI-based game.
Oh dear. I did not know this. I don't usually browse the web using elinks or such, but maybe if I did I'd know. Or if I wrote TUIs, like you do. I do use TUI MUAs, but I rarely run into this problem there.
That was on my android keyboard.
git bundle works like git clone so there's nothing to worry about.

You simply don't know what you are talking about.