Uses git bisect to search for the point in the repo history that the test script starts returning true.
Trace-GitRepoTest.ps1 [-TestScript] <ScriptBlock> [[-GoodCommit] <String>] [[-BadCommit] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Trace-GitRepoTest.ps1 { dotnet build; !$? }
Searches the full repo history for the point at which the build broke.
A script block that returns a boolean corresponding to a state introduced at some point in the repo history.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A commit from the repo history without the new state.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: $(Get-GitFirstCommit.ps1)
Accept pipeline input: False
Accept wildcard characters: False
A commit from the repo history with the new state.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: $(git rev-parse HEAD)
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.