Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
136 views
in Technique[技术] by (71.8m points)

git - Is gitweb a web application or the client of a web application?

I am confused about the terms of web interfaces and web applications.

  1. https://git-scm.com/docs/gitweb#_webserver_configuration says

    This section explains how to configure some common webservers to run gitweb.

    Does that imply that gitweb is a web application which can only be run on a web server? Is gitweb a web application in the same sense as a web application written in Java servelet and run on Tomcat?

  2. https://git-scm.com/docs/gitweb#_webserver_configuration says

    gitweb is a Git web interface (web frontend to Git repositories)

    Git Pocket Guide says

    Git comes with a web-based repository browser called “gitweb.”

    Does a "web interface" mean the client of a web application?

    Does that mean gitweb is the client of a web application also called "gitweb"?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I am confused about the terms of web interfaces and web applications.

They're actually the same. Web applications are programs that run on web servers. They generate web interfaces. That is, they produce HTML+CSS+Javascript, and web interface is what users see in their browsers.

1… gitweb is a web application which can only be run on a web server? Is gitweb a web application in the same sense as a web application written in Java servelet and run on Tomcat?

Yes to both. gitweb is written in Perl, but that's a minor technical detail.

2… gitweb is a Git web interface (web frontend to Git repositories)
Git Pocket Guide says: Git comes with a web-based repository browser called “gitweb.”

It's the same gitweb.

Does a "web interface" mean the client of a web application?

No. gitweb is a client of git, i.e. it takes all its information from git repositories. It presents the acquired information to users via its web interface. A user who uses gitweb views git repositories using a browser. (I'm afraid my answer sounds like I speak to a 3 y.o.)

Does that mean gitweb is the client of a web application also called "gitweb"?

No, there is only one gitweb. It's a web application that shows git repositories.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...