Add git-instaweb, instantly browse the working repo with gitweb
Subsystems (2)
I got tired of having to configure gitweb for every repository I work on. I sometimes prefer gitweb to standard GUIs like gitk or gitview; so this lets me automatically configure gitweb to browse my working repository and also opens my browser to it.
--- .gitignore | 1 Documentation/git-instaweb.txt | 84 ++++++++++++++++ Makefile | 16 +++ git-instaweb.sh | 206 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 306 insertions(+), 1 deletions(-)
.gitignore +1 -0
@@ -46,6 +46,7 @@ git-http-push git-imap-send git-index-pack git-init-db +git-instaweb git-local-fetch git-log git-lost-found
Documentation/git-instaweb.txt new file +84 -0
84 lines not on this page · raw message
Makefile +15 -1
@@ -142,7 +142,7 @@ SCRIPT_PYTHON = \ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \ $(patsubst %.perl,%,$(SCRIPT_PERL)) \ $(patsubst %.py,%,$(SCRIPT_PYTHON)) \ - git-cherry-pick git-status + git-cherry-pick git-status git-instaweb # The ones that do not have to link with lcrypto, lz nor xdiff. SIMPLE_PROGRAMS = \
@@ -545,6 +545,20 @@ git-status: git-commit cp $< $@+ mv $@+ $@ +git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css + rm -f $@ $@+ + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ + -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \ + -e 's/@@NO_CURL@@/$(NO_CURL)/g' \ + -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \ + [email protected] | sed \ + -e 's|@@GITWEB_CGI@@|#!$(PERL_PATH_SQ)|; T; r gitweb/gitweb.cgi' \ + | sed \ + -e 's|@@GITWEB_CSS@@||; T; r gitweb/gitweb.css' \ + > $@+ + chmod +x $@+ + mv $@+ $@ + # These can record GIT_VERSION git$X git.spec \ $(patsubst %.sh,%,$(SCRIPT_SH)) \
git-instaweb.sh new file +206 -0
206 lines not on this page · raw message
Signature · 1 line
1.4.1.rc1.g2faf-dirty
Quoted 6 lines · Eric Wong
I got tired of having to configure gitweb for every repository I work on. I sometimes prefer gitweb to standard GUIs like gitk or gitview; so this lets me automatically configure gitweb to browse my working repository and also opens my browser to it.
Signed-off-by Eric Wong <[email protected]>
This is cute but I haven't seen much responses to it yet. Are people uninterested?
I got tired of having to configure gitweb for every repository I work on. I sometimes prefer gitweb to standard GUIs like gitk or gitview; so this lets me automatically configure gitweb to browse my working repository and also opens my browser to it.
Updates from the original patch:
Added Apache/mod_perl2 compatibility if Dennis Stosberg's gitweb has been applied, too: <[email protected]>
General cleanups in shell code usage.
---
Quoted 11 lines · Junio C Hamano
Quoted 6 lines · Eric Wong
I got tired of having to configure gitweb for every repository I work on. I sometimes prefer gitweb to standard GUIs like gitk or gitview; so this lets me automatically configure gitweb to browse my working repository and also opens my browser to it.
Signed-off-by Eric Wong <[email protected]>This is cute but I haven't seen much responses to it yet. Are people uninterested?
I've found it very useful myself, but I wouldn't have made it if I didn't :) It's somewhat of a strange and alien concept in GUIs, and will probably take some getting used to; but I think it can gain users quickly because it doesn't rely on any specific toolkits, and can be expanded to support more HTTP servers.
If anything, it can also serve as short and simple documentation for setting up gitweb.
.gitignore | 1 Documentation/git-instaweb.txt | 84 ++++++++++++++ Makefile | 16 +++ git-instaweb.sh | 235 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 335 insertions(+), 1 deletions(-)
.gitignore +1 -0
@@ -46,6 +46,7 @@ git-http-push git-imap-send git-index-pack git-init-db +git-instaweb git-local-fetch git-log git-lost-found
Documentation/git-instaweb.txt new file +84 -0
84 lines not on this page · raw message
Makefile +15 -1
@@ -142,7 +142,7 @@ SCRIPT_PYTHON = \ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \ $(patsubst %.perl,%,$(SCRIPT_PERL)) \ $(patsubst %.py,%,$(SCRIPT_PYTHON)) \ - git-cherry-pick git-status + git-cherry-pick git-status git-instaweb # The ones that do not have to link with lcrypto, lz nor xdiff. SIMPLE_PROGRAMS = \
@@ -545,6 +545,20 @@ git-status: git-commit cp $< $@+ mv $@+ $@ +git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css + rm -f $@ $@+ + sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ + -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \ + -e 's/@@NO_CURL@@/$(NO_CURL)/g' \ + -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \ + [email protected] | sed \ + -e 's|@@GITWEB_CGI@@|#!$(PERL_PATH_SQ)|; T; r gitweb/gitweb.cgi' \ + | sed \ + -e 's|@@GITWEB_CSS@@||; T; r gitweb/gitweb.css' \ + > $@+ + chmod +x $@+ + mv $@+ $@ + # These can record GIT_VERSION git$X git.spec \ $(patsubst %.sh,%,$(SCRIPT_SH)) \
git-instaweb.sh new file +235 -0
235 lines not on this page · raw message
Signature · 1 line
1.4.1.rc2.gbf43
Quoted 11 lines · Junio C Hamano
Quoted 6 lines · Eric Wong
I got tired of having to configure gitweb for every repository I work on. I sometimes prefer gitweb to standard GUIs like gitk or gitview; so this lets me automatically configure gitweb to browse my working repository and also opens my browser to it.
Signed-off-by Eric Wong <[email protected]>This is cute but I haven't seen much responses to it yet. Are people uninterested?
I am.
Signature · 3 lines
# Beber : [email protected] # IM : [email protected] # http://guybrush.ath.cx, irc://irc.freenode.net/#{e.fr,gentoofr}