Skip to content

Commit

Permalink
Hg-DiffLastCommit: now calls Hg-Diff (implementation copy-paste removed)
Browse files Browse the repository at this point in the history
closed issue #6
  • Loading branch information
kolesnick committed Mar 26, 2012
1 parent fb2e04a commit a10bee3
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Hg-DiffLastCommit.ps1
@@ -1,13 +1,7 @@
function Write-LastHgCommitDiff {

$lastChangesetId = hg log `
--limit 1 `
--template '{node}' `
2> $null `

hg diff `
--change $lastChangesetId `

}

Set-Alias hgdifflastcommit Write-LastHgCommitDiff
function Write-LastHgCommitDiff {

hgdiff -1

}

Set-Alias hgdifflastcommit Write-LastHgCommitDiff

0 comments on commit a10bee3

Please sign in to comment.