gitlab-org / libgit2
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
31% | 25% | 22% | 9% | 11%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c36% | 29% | 24% | 6% | 2%
h0% | 0% | 12% | 25% | 61%
cmake0% | 0% | 26% | 10% | 62%
py0% | 0% | 0% | 100% | 0%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src34% | 27% | 23% | 7% | 7%
include0% | 0% | 12% | 28% | 58%
cmake0% | 0% | 25% | 10% | 63%
fuzzers0% | 0% | 0% | 42% | 57%
script0% | 0% | 0% | 60% | 39%
Longest Files (Top 50)
File# lines# units
index.c
in src
2745 131
merge.c
in src
2507 85
2231 95
2124 69
remote.c
in src
1895 80
1679 72
1679 71
sha1.c
in src/hash/sha1/sha1dc
1597 13
1535 55
path.c
in src
1446 70
1281 43
1223 33
winhttp.c
in src/transports
1212 32
odb.c
in src
1167 66
refs.c
in src
1117 60
config.c
in src
1115 74
rebase.c
in src
1101 35
httpclient.c
in src/transports
1091 33
pack.c
in src
987 31
indexer.c
in src
966 31
tree.c
in src
931 42
906 43
futils.c
in src
882 38
stash.c
in src
859 33
849 38
828 36
filter.c
in src
813 43
smart_protocol.c
in src/transports
798 18
buffer.c
in src
794 40
787 17
posix_w32.c
in src/win32
738 33
commit.c
in src
737 23
ssh.c
in src/transports
701 25
695 33
date.c
in src
692 25
670 27
668 32
util.c
in src
653 33
650 23
apply.c
in src
642 19
640 28
notes.c
in src
640 31
openssl.c
in src/streams
639 45
xdiffi.c
in src/xdiff
605 18
xmerge.c
in src/xdiff
583 17
revwalk.c
in src
560 32
branch.c
in src
551 22
local.c
in src/transports
544 21
http.c
in src/transports
539 15
539 25
Files With Most Units (Top 50)
File# lines# units
index.c
in src
2745 131
2231 95
merge.c
in src
2507 85
remote.c
in src
1895 80
config.c
in src
1115 74
1679 72
1679 71
path.c
in src
1446 70
2124 69
odb.c
in src
1167 66
refs.c
in src
1117 60
1535 55
openssl.c
in src/streams
639 45
906 43
1281 43
filter.c
in src
813 43
tree.c
in src
931 42
buffer.c
in src
794 40
849 38
futils.c
in src
882 38
828 36
rebase.c
in src
1101 35
posix_w32.c
in src/win32
738 33
695 33
httpclient.c
in src/transports
1091 33
stash.c
in src
859 33
util.c
in src
653 33
1223 33
winhttp.c
in src/transports
1212 32
revwalk.c
in src
560 32
668 32
indexer.c
in src
966 31
notes.c
in src
640 31
pack.c
in src
987 31
640 28
670 27
credential.c
in src/transports
369 27
diff.c
in src
388 26
ssh.c
in src/transports
701 25
539 25
date.c
in src
692 25
blob.c
in src
361 25
vector.c
in src
305 24
commit.c
in src
737 23
tag.c
in src
396 23
650 23
485 23
push.c
in src
408 22
smart.c
in src/transports
400 22
branch.c
in src
551 22
Files With Long Lines (Top 50)

There are 66 files with lines longer than 120 characters. In total, there are 208 long lines.

File# lines# units# long lines
ubc_check.c
in src/hash/sha1/sha1dc
341 1 59
sha1.c
in src/hash/sha1/sha1dc
1597 13 11
win32.c
in src/hash/sha1
223 7 10
remote.c
in src
1895 80 7
849 38 6
1535 55 6
668 32 6
merge.c
in src
2507 85 5
refs.h
in include/git2
96 - 4
smart_protocol.c
in src/transports
798 18 4
124 - 4
clone.c
in src
429 20 4
commit.c
in src
737 23 3
828 36 3
rebase.c
in src
1101 35 3
winhttp.c
in src/transports
1212 32 3
1679 72 3
2231 95 3
config.h
in include/git2
112 - 2
transport.h
in include/git2/sys
133 - 2
transaction.h
in include/git2
15 - 2
FindHTTP_Parser.cmake
in cmake/Modules
34 - 2
SelectHTTPSBackend.cmake
in cmake/Modules
116 - 2
refdb.h
in src
40 - 2
odb.c
in src
1167 66 2
local.c
in src/transports
544 21 2
smart.c
in src/transports
400 22 2
config.c
in src
1115 74 2
280 13 2
idxmap.c
in src
138 15 2
refdb.c
in src
198 22 2
180 9 2
remote.h
in src
37 - 2
release.py
in script
144 10 2
cherrypick.h
in include/git2
30 - 1
signature.h
in include/git2
13 - 1
refdb_backend.h
in include/git2/sys
65 - 1
reflog.h
in include/git2
24 - 1
tree.h
in include/git2
90 - 1
cert.h
in include/git2
33 - 1
graph.h
in include/git2
13 - 1
commit.h
in include/git2
96 - 1
remote.h
in include/git2
180 - 1
FindSecurity.cmake
in cmake/Modules
25 - 1
FindmbedTLS.cmake
in cmake/Modules
84 - 1
tree.c
in src
931 42 1
fetch.c
in src
102 6 1
384 21 1
89 3 1
push.c
in src
408 22 1