<commit_before>require git.inc

SRC_URI[src.md5sum] = "76518fa774b36de81d160b85fa4f19c1"
SRC_URI[src.sha256sum] = "5601df7fc282fdd66de196b282694eb77dcfc50438f01587de144b3ead1a6b2f"

SRC_URI += "file://git-less-hardlinks.diff"

EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no ac_cv_c_c99_format=yes"


DEPENDS = "openssl curl zlib expat"
RDEPENDS_${PN} = "perl perl-module-file-path cpio findutils sed"

# Dropbear ssh needs a wrapper script, so install openssh-ssh to make it work out of the box
RRECOMMENDS_${PN} = "openssh-ssh"

PR = "r7"

do_install_append() {
	# Fix broken hardlinks
	for gitprog in git-receive-pack git-upload-archive ; do
		rm ${D}${bindir}/$gitprog 
		ln -sf ${bindir}/git ${D}${bindir}/$gitprog
	done
	rm ${D}${libexecdir}/git-core/git && ln -sf ${bindir}/git ${D}${libexecdir}/git-core/git
}

FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"<commit_msg>git: replace remaining broken hardlinks with symlinks.<commit_after>require git.inc

SRC_URI[src.md5sum] = "76518fa774b36de81d160b85fa4f19c1"
SRC_URI[src.sha256sum] = "5601df7fc282fdd66de196b282694eb77dcfc50438f01587de144b3ead1a6b2f"

SRC_URI += "file://git-less-hardlinks.diff"

EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no ac_cv_c_c99_format=yes"


DEPENDS = "openssl curl zlib expat"
RDEPENDS_${PN} = "perl perl-module-file-path cpio findutils sed"

# Dropbear ssh needs a wrapper script, so install openssh-ssh to make it work out of the box
RRECOMMENDS_${PN} = "openssh-ssh"

PR = "r8"

do_install_append() {
	# Fix broken hardlinks
	for gitprog in git-receive-pack git-upload-archive ; do
		rm ${D}${bindir}/$gitprog
		ln -sf ${bindir}/git ${D}${bindir}/$gitprog
	done
	for gitprog in git-cvsserver git-shell git-upload-pack ; do
		rm ${D}${libexecdir}/git-core/$gitprog
		ln -sf ${bindir}/$gitprog ${D}${libexecdir}/git-core/$gitprog
	done
	rm ${D}${libexecdir}/git-core/git && ln -sf ${bindir}/git ${D}${libexecdir}/git-core/git
}

FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
{'fraction_non_alphanumeric': 0.14625506072874495, 'fraction_numerical': 0.06680161943319839, 'mean_word_length': 5.4188311688311686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2103093', 'n_tokens_mistral': 916, 'n_tokens_neox': 819, 'n_words': 155}