public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
Search Repo:
added remote branch support - you could fetch someone elses wiki and read, 
merge, etc
schacon (author)
Sat Mar 08 11:55:33 -0800 2008
commit  e7718c564e758a37489123ba3a097261e73b0369
tree    ae42e322796d9fea6ff80fba775a6266e16a10fd
parent  fb02f55ffc054d8120c39f403e115c8506c0c8dd
...
149
150
151
 
 
 
 
 
 
...
149
150
151
152
153
154
155
156
157
0
@@ -149,4 +149,10 @@
0
   end
0
   redirect '/a/branches'
0
 end
0
+
0
+post '/a/new_remote' do
0
+ $repo.add_remote(params[:branch_name], params[:branch_url])
0
+ $repo.fetch(params[:branch_name])
0
+ redirect '/a/branches'
0
+end
...
5
6
7
8
 
9
10
 
11
12
13
14
...
16
17
18
 
 
19
20
21
22
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
...
5
6
7
 
8
9
 
10
11
12
13
14
...
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
0
@@ -5,9 +5,9 @@
0
 <% @branches.each do |b| %>
0
   <tr>
0
     <% if b.current %>
0
- <td><strong><%= b.name %></strong></td>
0
+ <td><strong><%= b.full %></strong></td>
0
     <% else %>
0
- <td><%= b.name %></td>
0
+ <td><%= b.full %></td>
0
       <td><a href="/a/branch/<%= b.name %>">switch</a></td>
0
       <td><a href="/a/merge_branch/<%= b.name %>">merge</a></td>
0
       <!-- <td><a href="/a/delete_branch/<%= b.name %>">delete</a></td> -->
0
0
@@ -16,12 +16,39 @@
0
 <% end %>
0
 </table>
0
 
0
+<hr/>
0
+
0
 <h2>New Branch</h2>
0
   <form method="post" action="/a/new_branch">
0
- New Branch Name : <input name="branch"><br/>
0
- <input type="radio" name="type" value="derive">Derivative Branch
0
- <small>(starts new branch based on this one)</small><br/>
0
- <input type="radio" name="type" value="blank">Blank Branch <small>(starts new blank branch)</small><br/>
0
- <p class="right"><input type="submit" value="Create Branch" class="submit" /></p>
0
+ <table>
0
+ <tr>
0
+ <td> New Branch Name : </td>
0
+ <td> <input name="branch"></td>
0
+ </tr>
0
+ <tr>
0
+ <td align="right"> <input type="radio" name="type" value="derive"></td>
0
+ <td> Derivative Branch <small>(starts new branch based on this one)</small></td>
0
+ </tr>
0
+ <tr>
0
+ <td align="right"> <input type="radio" name="type" value="blank"> </td>
0
+ <td> Blank Branch <small>(starts new blank branch)</small></td>
0
+ </tr>
0
+ </table>
0
+ <p class="right"><input type="submit" value="Create Branch" class="submit" /></p>
0
+ </form>
0
+
0
+<h2>New Remote Branch</h2>
0
+ <form method="post" action="/a/new_remote">
0
+ <table>
0
+ <tr>
0
+ <td> Remote Branch URL : </td>
0
+ <td> <input name="branch_url"></td>
0
+ </tr>
0
+ <tr>
0
+ <td> Remote Branch Name : </td>
0
+ <td> <input name="branch_name"></td>
0
+ </tr>
0
+ </table>
0
+ <p class="right"><input type="submit" value="Add Remote Branch" class="submit" /></p>
0
   </form>

Comments

    No one has commented yet.