Skip to content

Instantly share code, notes, and snippets.

@dexterous
Last active February 18, 2016 17:03
Show Gist options
  • Save dexterous/f7facb80d7f7ae8fce0c to your computer and use it in GitHub Desktop.
Save dexterous/f7facb80d7f7ae8fce0c to your computer and use it in GitHub Desktop.
A quick analysis of git-core binaries
user@hostname:~$ uname -a
Linux dockerhome 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
user@hostname:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
user@hostname:~$ apt-cache policy git git-core
git:
Installed: 1:1.9.1-1ubuntu0.1
Candidate: 1:1.9.1-1ubuntu0.2
Version table:
1:1.9.1-1ubuntu0.2 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
*** 1:1.9.1-1ubuntu0.1 0
100 /var/lib/dpkg/status
1:1.9.1-1 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
git-core:
Installed: (none)
Candidate: 1:1.9.1-1ubuntu0.2
Version table:
1:1.9.1-1ubuntu0.2 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1:1.9.1-1 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
user@hostname:~$ file /usr/lib/git-core/* | cut -c 49- | sort -d | cut -d ',' -f 1,2 | uniq -c | sort -nr
107 symbolic link to `git'
18 POSIX shell script, ASCII text executable
16 ELF 64-bit LSB executable, x86-64
7 ASCII text
3 symbolic link to `git-remote-http'
3 Perl script, ASCII text executable
1 UTF-8 Unicode text
1 directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment