Skip to content

Commit 01c77a2

Browse files
authored
Merge pull request #192 from igapyon/tiga0313jcg
Git 作業一覧へ改名し、比較・squash との連携と一覧 UI を再設計
2 parents aabfaa6 + aa709db commit 01c77a2

25 files changed

Lines changed: 2588 additions & 572 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Git補助ツールです。
342342
- コマンドから入るのではなく、まずユースケース(やりたいこと)を明確化し、流れに沿って必要なコマンドを並べる方針です。
343343
- **git-pseudo-squash.html**: reset --soft で疑似的に1コミット化するコマンドを生成します。複数行のコミットメッセージに対応し、内容は一時ファイルに書き込んで git commit -F で渡します。
344344
- **git-branch-diff.html**: ブランチ差分コマンドを生成します。
345-
- **git-work-branch-list.html**: 複数リポジトリと複数ブランチの組み合わせを一覧管理し、比較用 `git diff` コマンドも確認できます
345+
- **git-work-list.html**: 複数リポジトリと複数作業の組み合わせを一覧管理し、比較や squash への導線もまとめて扱えます
346346
- **git-config-setup.html**: Gitのユーザー名とメールアドレスを設定するコマンドを生成します。
347347
- **git-config-advanced-setup.html**: core.autocrlfやpush.defaultなどの詳細設定をコマンドで生成します。
348348

docs/git/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
- 2 ブランチ間の差分コマンド(`git diff` 系)を生成します。
2525
- `docs/git/git-pseudo-squash.html`
2626
- `git reset --soft` と再コミットで履歴をまとめる「pseudo-squash」手順のコマンドを段階ごとに生成します。
27-
- `docs/git/git-work-branch-list.html`
28-
- 複数リポジトリと複数ブランチの組み合わせを一覧で管理し、比較用 `git diff` コマンドも確認できます
27+
- `docs/git/git-work-list.html`
28+
- 複数リポジトリと複数作業の組み合わせを一覧で管理し、比較や squash への導線もまとめて扱えます
2929

3030
## 使い方
3131

@@ -40,10 +40,10 @@
4040
- `docs/git/git-pseudo-squash-src.html`
4141
- `docs/git/src/git-pseudo-squash/css/app.css`
4242
- `docs/git/src/git-pseudo-squash/js/main.js`
43-
- `git-work-branch-list` の編集元:
44-
- `docs/git/git-work-branch-list-src.html`
45-
- `docs/git/src/git-work-branch-list/css/app.css`
46-
- `docs/git/src/git-work-branch-list/js/main.js`
43+
- `git-work-list` の編集元:
44+
- `docs/git/git-work-list-src.html`
45+
- `docs/git/src/git-work-list/css/app.css`
46+
- `docs/git/src/git-work-list/js/main.js`
4747
- `git-config-setup` の編集元:
4848
- `docs/git/git-config-setup-src.html`
4949
- `docs/git/src/git-config-setup/css/app.css`

docs/git/git-branch-diff-src.html

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,17 @@
6060
<lht-switch-help switch-id="scopeA" label="リモートとして扱う" on-change="updateRemoteState"></lht-switch-help>
6161
</div>
6262

63-
<div class="md-form-row md-form-row--nowrap">
63+
<div id="branchBRow" class="md-form-row md-form-row--nowrap">
6464
<lht-text-field-help field-id="branchB" label="比較ブランチ" required placeholder="例: devel" help-text="比較対象のブランチです。2つのブランチ差分を表示します。例: devel / feature123。ローカルとして扱う場合は、ブランチ名に加えてコミットID(SHA)も指定できます。"></lht-text-field-help>
6565
<lht-switch-help switch-id="scopeB" label="リモートとして扱う" on-change="updateRemoteState"></lht-switch-help>
6666
</div>
6767
</div>
6868

6969
<div class="md-section md-stack-md">
7070
<div class="md-choice-inline md-choice-text">
71+
<lht-switch-help switch-id="useHeadWork" label="HEAD" on-change="updateWorkHeadState">
72+
作業側の比較対象に `HEAD` を使います。
73+
</lht-switch-help>
7174
<lht-switch-help switch-id="lockOrigin" label="リモート名は origin 固定" help-label="リモート名は origin 固定の説明" checked on-change="updateRemoteState">
7275
origin 固定で使う場合にオンにします。オフにすると任意のリモート名を入力できます。
7376
ふだんは origin を使うケースが多いです。
@@ -105,9 +108,6 @@
105108
<lht-command-block command-id="diffCmd"></lht-command-block>
106109

107110
<div class="md-section md-actions-row">
108-
<div class="md-actions-row__field">
109-
<lht-text-field-help field-id="repoUrl" label="リポジトリ URL" placeholder="例: https://github.com/igapyon/local-html-tools" help-text="Git 作業ブランチ一覧へ戻すときの保存先識別に使います。`git-work-branch-list` から遷移した場合は自動入力されます。"></lht-text-field-help>
110-
</div>
111111
<button id="saveToWorkBranchListBtn" type="button" class="md-button md-button--primary">
112112
<svg aria-hidden="true" viewBox="0 0 24 24" class="md-button__icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
113113
<path d="M4 7h16"></path>
@@ -116,6 +116,25 @@
116116
</svg>
117117
<span>一覧</span>
118118
</button>
119+
<div class="md-actions-row__field">
120+
<lht-text-field-help field-id="repoUrl" label="リポジトリ URL" placeholder="例: https://github.com/igapyon/local-html-tools" help-text="Git 作業一覧へ戻すときの保存先識別に使います。`git-work-list` から遷移した場合は自動入力されます。"></lht-text-field-help>
121+
</div>
122+
<button id="openGitHubCompareBtn" type="button" class="md-button md-button--compact md-button--surface" title="GitHub 比較を開く" aria-label="GitHub 比較を開く" disabled>
123+
<svg aria-hidden="true" viewBox="0 0 24 24" class="md-button__icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
124+
<path d="M7 7h10"></path>
125+
<path d="M7 12h5"></path>
126+
<path d="M7 17h10"></path>
127+
<path d="M17 4l3 3-3 3"></path>
128+
</svg>
129+
<span>GitHub比較</span>
130+
</button>
131+
<button id="openRepoUrlBtn" type="button" class="md-icon-btn md-icon-btn--small md-icon-btn--surface" title="URL を開く" aria-label="URL を開く">
132+
<svg viewBox="0 0 24 24" class="md-icon-small" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
133+
<path d="M14 5h5v5"></path>
134+
<path d="M10 14 19 5"></path>
135+
<path d="M19 14v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h4"></path>
136+
</svg>
137+
</button>
119138
</div>
120139

121140
<lht-toast id="toast"></lht-toast>

0 commit comments

Comments
 (0)