0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【git-spice】ブランチとコミットの一覧にプルリクエストのURLを表示する方法

Posted at

設定方法

spice.log.crFormat設定によって、ブランチとコミットの一覧にプルリクエストの情報を表示できます。

# プルリクエストのURLを表示する設定
git config --local spice.log.crFormat "url"

# プルリクエストのIDを表示する設定(デフォルト)
git config --global spice.log.crFormat "id"

gs log short(短縮表示)の設定

git config --global spice.logShort.crFormat "url"

gs log long(詳細表示)の設定

git config --global spice.logLong.crFormat "url"

設定前の表示(IDでの表示)

$ gs log long
  ┏━■ feature/user-profile-settings (#456) ◀
  ┃   b3c2d1e feat: add user profile settings page (2 hours ago)
┏━┻□ feature/authentication-system (#455)
┃    f7e6a9b feat: implement authentication system (1 day ago)
main

設定後の表示(URLでの表示)

$ git --global config spice.log.crFormat "url"
$ gs log long
  ┏━■ feature/user-profile-settings (https://github.com/example-org/sample-app/pull/456) ◀
  ┃   b3c2d1e feat: add user profile settings page (2 hours ago)
┏━┻□ feature/authentication-system (https://github.com/example-org/sample-app/pull/455)
┃    f7e6a9b feat: implement authentication system (1 day ago)
main

参考

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?