-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathi_repo.html
183 lines (145 loc) · 9.61 KB
/
i_repo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<span class="silver">MainRepo</span>
<span id="main_repo_name"></span>
<span class="silver">submodules</span>
<span id="submodules_list"></span>
<table><tr><td valign=top>
<span id="current_repo_name" class="bold s170">**current_repo**</span>
<span id="current_repo_size" onClick="repoDiskSize(); tglRepoPane('pane_reposize','toggle')" class="bold s150 btn">**current_repo_size**</span>
<span onClick="tglRepoPane('pane_delete','toggle')" class="btn red">delete</span>
<br/>
<a id="current_repo_path" href="javascript:void(0);" onClick="$('#repo_edit_pane').slideToggle(10);" class="gray">**current_repo_path**</a>
<br/>
<div class="detail hide" id="repo_edit_pane">
Open with
<a id="btn_open_finder" href="javascript:void(0);" onClick="osrun('open ' + path2dir(_G.current_repo_path) ); $('#repo_edit_pane').slideUp(10);" class="btn ">finder</a>
<a id="btn_open_atom" href="javascript:void(0);" onClick="osrun('/Applications/Atom.app/Contents/Resources/app/atom.sh ' + path2dir(_G.current_repo_path) ); $('#repo_edit_pane').slideUp(10);" class="btn ">atom</a>
<a id="btn_open_sublime2" href="javascript:void(0);" onClick="osrun('/Applications/Sublime\\ Text\\ 2.app/Contents/SharedSupport/bin/subl ' + path2dir(_G.current_repo_path) ); $('#repo_edit_pane').slideUp(10);" class="btn ">sublime2</a>
<a id="btn_open_sublime3" href="javascript:void(0);" onClick="osrun('/Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl ' + path2dir(_G.current_repo_path) ); $('#repo_edit_pane').slideUp(10);" class="btn ">sublime3</a>
</div>
<span onClick="showBranchList('replace','list'); tglRepoPane('local_branch','toggle') " >
<span class="btn">branch</span><span id="local_branch_ct" class="btn s120 bold">**local_branch_ct**</span>
</span>
<span id="ignore_btncolor" class="btn_silver">
<span onClick="showIgnore(); tglRepoPane('pane_ignore','toggle')" >ignore</span>
</span>
<span id="hook_btncolor" class="btn_silver">
<span onClick="showHooks(); tglRepoPane('pane_hooks','toggle')" >hooks</span>
</span>
<span id="submodule_btncolor" class="btn_silver">
<span onClick="showGitmodules('replace'); tglRepoPane('pane_submodule','toggle')" >submodule</span><span id="submodule_count" class="s120 bold">**submodule_count**</span>
</span>
<span id="stash_btncolor" class="btn_silver">
<span onClick="showStashList('replace'); tglRepoPane('pane_stash','toggle')" >stash</span><span id="stash_count" class="s120 bold"></span>
</span>
<span onClick="showConfig(); tglRepoPane('pane_config','toggle')" class="btn">config</span>
<span onClick="showDotGit(); tglRepoPane('pane_dotgitfiles','toggle')" class="btn">.git-files</span>
<span onClick="showRefLog(); tglRepoPane('pane_refspec','toggle')" class="btn">reflog</span>
</td><td valign=top >
<div id="remote_btncolor_1" class="btn_silver" >
<span onClick="osRunOut('git fetch','pane_remote_detail','replace'); openPaneCenter('pane_remote')" class="s120">< fetch</span>
<br/>
<span onClick="osRunOut('git pull' ,'pane_remote_detail','replace'); openPaneCenter('pane_remote')" class="s120">< pull</span>
<br/>
<span onClick="osRunOut('git push' ,'pane_remote_detail','replace'); openPaneCenter('pane_remote')" class="s120">> push </span>
<br/>
</div>
</td><td valign=top>
<!-- remote -->
<div id="remote_btncolor_2" class="btn_silver" style="background:#ffffdd;">
<span onClick="showRemoteRepos('replace'); tglRepoPane('pane_remote','toggle')" class="s120 bold">Remote</span>
<br/>
<span id="remote_menu">
<span onClick="osRunOut('git branch -r','pane_re_branch','replace'); tglRepoPane('pane_re_branch','toggle')" >
branch<span id="remote_branch_ct" class="s120 bold">**remote_branch_ct**</span>
</span>
</span>
</div>
</td></tr></table>
<!-- pane repo -->
<div id="local_branch" pane="repo" class="code hide detail" >
new branch
<span class="silver s80">git branch branchname01 </span><br/>
<a href="javascript:void(0);" onClick="$('#branch_name').val('feature/').focus()">feature</a>
<a href="javascript:void(0);" onClick="$('#branch_name').val('hotfix/').focus()">hotfix</a>
<a href="javascript:void(0);" onClick="$('#branch_name').val('release/').focus()">release</a><br/>
<input id="branch_name" type="text" placeholder="branch_name" />
<button onClick="osRunOut('git branch \'' + $('#branch_name').val() + '\'','local_branch_details','replace',function(){ showBranchList('append','list'); tglRepoPane('local_branch','down') });" >add</button>
<br/><br/>
merge branch
<span class="silver s80">git merge branchname01 </span><br/>
<input id="merge_branch_name" type="text" placeholder="branch_name" />
<button onClick="osRunOut('git merge \'' + $('#merge_branch_name').val() + '\'','local_branch_details','replace',function(){ showBranchList('append','list'); tglRepoPane('local_branch','down') });" >add</button>
<div class="vm10 fMenu underline">
<span onClick="showBranchList('replace','list'); tglRepoPane('local_branch','down') " class="btn s120">list</span>
<span onClick="showBranchList('replace','tree'); tglRepoPane('local_branch','down') " class="btn s120">tree</span>
<span class="silver">
<span onClick="$(this).attr('class','bold gray')" >currentBranch</span>
<span onclick="$(this).attr('class','bold gray')" >allBranch</span>
</span>
</div>
<div id="local_branch_details" ></div>
</div>
<div id="pane_stash" pane="repo" class="code hide detail" >
<div id="pane_stash_list" ></div>
<div id="pane_stash_detail" ></div>
</div>
<div id="pane_hooks" pane="repo" class="code hide detail" >
<div id="hooks_list" ></div>
<br/>
<div id="hooks_detail" ></div>
</div>
<div id="pane_submodule" pane="repo" class="code hide detail" >
new submodule <span class="silver s80">git submodule url://.../.git name01 </span><br/>
<input id="submodule_url" type="text" placeholder="submodule_url" size="80" />
<input id="submodule_name" type="text" placeholder="submodule_name" />
<button onClick="gitSubmoduleAdd() " placeholder="git command" >add</button>
<div id="submodule_details" ></div>
</div>
<div id="pane_config" pane="repo" class="code hide detail" >
</div>
<div id="pane_refspec" pane="repo" class="code hide detail" >
</div>
<div id="pane_dotgitfiles" pane="repo" class="code hide detail" >
<span onClick="$('div[name=file_detail]').toggle();" class="btn">toggle中身</span>
<div id="dotgitfiles_detail" class="underline"> </div>
</div>
<div id="pane_delete" pane="repo" class="code hide detail" >
<span class="red s150 bold">Danger.</span>
<span class="red">No going back. Please be certain.</span>
<br/>
delete .git directry<br/>
<input id="delete_name_git" type="text" placeholder="repository_name" />
<button onClick="delGit(_G.current_repo_path, $('#delete_name_git').val())" >delete</button>
<br/>
delete repo Directory<br/>
<input id="delete_name_dir" type="text" placeholder="repository_name" />
<button onClick="delDir(_G.current_repo_path, $('#delete_name_dir').val())" >delete</button>
<br/>
<div id="pane_delete_detail" ></div>
Re-Init repo Directory<br/>
<input id="reinit_name_dir" type="text" placeholder="repository_name" />
<button onClick="reInitDir(_G.current_repo_path, $('#reinit_name_dir').val())" >delete</button>
<br/>
<div id="pane_delete_detail" ></div>
</div>
<div id="pane_ignore" pane="repo" class="code hide detail" >
<textarea id="ignore_edit" cols="50" rows="12" ></textarea>
<button onClick="updateIgnore($('#ignore_edit').val())" >update</button>
<div id="pane_ignore_detail" ></div>
</div>
<div id="pane_remote" pane="repo" class="code hide detail" >
new remote <span class="silver s80">git remote add branchname01 https://..../.git </span>
<a onClick="osrun('open https://github.com')" class="btn">github</a>
<a onClick="osrun('open https://bitbucket.org')" class="btn">bitbucket</a>
<br/>
<input id="remote_name" type="text" placeholder="remote_name" />
<input id="remote_url" type="text" placeholder="remote_url" />
<button onClick="gitRemoteAdd()" >add</button>
<br/>
<div id="pane_remote_detail" ></div>
</div>
<div id="pane_re_branch" pane="repo" class="code hide detail" >
</div>
<div id="pane_reposize" pane="repo" class="detail code">
</div>