1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

svn で差分の行数を取得する(Windows 環境)

Last updated at Posted at 2019-11-08

Subversion にて差分の行数を知りたいことがあり、調べてみましたが Unix 系のコマンドはたくさん見つかったのに Windows 系の情報が見つかりませんでした。

svnでdiffの行数を取得する · 1000g

PowerShell で同じような機能を持つものを作ってみます。

(svn diff -r <リビジョン番号>:<もう一つのリビジョン番号> ) -replace '(\+\+\+|\-\-\-)', '***' | Select-string -Pattern "^[\+\-]" | Measure-Object -Line | Format-List Lines

以上です。

1
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?