Skip to content

Instantly share code, notes, and snippets.

@staxmanade
Created September 25, 2012 15:40
Show Gist options
  • Save staxmanade/3782651 to your computer and use it in GitHub Desktop.
Save staxmanade/3782651 to your computer and use it in GitHub Desktop.
TFS checkin by person count
$history = tf history ./* /recursive /noprompt;
$h = @{}; $history | where { $_ } | select -skip 2 | %{ $val = $_.Substring(10, 13).Trim(); if([string]::IsNullOrEmpty($h[$val])){ $h[$val] = 0; "add $val"; } else{ $val; $h[$val] = $h[$val] + 1} }; $h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment