When I check out for example the git repository https://github.com/rust-lang/stdarch.git
(taken at random from github) and then do
git diff eaee02ffdf5d820729ccdf2f95fa08b08c7d24d2^ eaee02ffdf5d820729ccdf2f95fa08b08c7d24d2
to view a commit, I get something starting with
diff --git a/crates/core_arch/src/core_arch_docs.md b/crates/core_arch/src/core_arch_docs.md
index 58b7eda9..eddd1fc0 100644
--- a/crates/core_arch/src/core_arch_docs.md
+++ b/crates/core_arch/src/core_arch_docs.md
@@ -194,18 +194,18 @@ others at:
* [`nvptx`]
* [`wasm32`]
-[`x86`]: x86/index.html
-[`x86_64`]: x86_64/index.html
-[`arm`]: arm/index.html
-[`aarch64`]: aarch64/index.html
-[`riscv32`]: riscv32/index.html
-[`riscv64`]: riscv64/index.html
-[`mips`]: mips/index.html
-[`mips64`]: mips64/index.html
-[`powerpc`]: powerpc/index.html
-[`powerpc64`]: powerpc64/index.html
-[`nvptx`]: nvptx/index.html
-[`wasm32`]: wasm32/index.html
+[`x86`]: ../../core/arch/x86/index.html
+[`x86_64`]: ../../core/arch/x86_64/index.html
+[`arm`]: ../../core/arch/arm/index.html
+[`aarch64`]: ../../core/arch/aarch64/index.html
I'm wondering about the text after the second @@
in the fifth line (in this case others at:
). From other examples I had the impression that most of the time it's the line immediately preceding the quoted text block, but in this specific case, looking at the file shows us that it's not the line immediately preceding the block, in fact 14 lines further up.
What's the point of the text after the @@
in general? Is it maybe to have something easily fulltext-searchable in a large file? Is it maybe documented somewhere?