You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.Logger.WriteLine("First two characters from commit ID in hex is {0}",leadingFourChars);
860
+
this.Logger.WriteLine("First two characters, converted to a number is {0}",expectedNumber);
861
+
this.Logger.WriteLine("Generated 16-bit ushort from commit ID is {0}, whose hex representation is {1}",actualNumber,TestUtilities.ToHex(actualNumber));
// Accept a big endian match or a little endian match.
288
+
// Nerdbank.GitVersioning up to v3.4 would produce versions based on the endianness of the CPU it ran on (typically little endian).
289
+
// Starting with v3.5, it deterministically used big endian. In order for `nbgv get-commits` to match on versions computed before and after the change,
/// <param name="object">The object whose ID is to be tested.</param>
325
303
/// <param name="leadingBytes">The leading 16-bits to be tested.</param>
326
304
/// <param name="bitMask">The mask that indicates which bits should be compared.</param>
305
+
/// <param name="bigEndian"><see langword="true"/> to read the first two bytes as big endian (v3.5+ behavior); <see langword="false"/> to use little endian (v3.4 and earlier behavior).</param>
327
306
/// <returns><c>True</c> if the object's ID starts with <paramref name="leadingBytes"/> after applying the <paramref name="bitMask"/>.</returns>
0 commit comments