summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Expand)AuthorFilesLines
2012-09-13Typo.Jason A. Donenfeld1-1/+1
2012-09-13Bump version.1.3Jason A. Donenfeld2-2/+2
2012-09-13Allow avoiding the prompt for overwriting, with --force flag.Jason A. Donenfeld2-7/+11
2012-09-13Split out common gpg options into variable.Jason A. Donenfeld1-6/+7
2012-09-13use gpg --batch for quieter outputBrian Mattern1-3/+3
2012-09-13add edit command to zsh completionBrian Mattern1-1/+8
2012-09-13Skip directories in zsh completionBrian Mattern1-1/+1
2012-09-13prevent <ctrl-c> on password entry from wiping out fileBrian Mattern1-2/+2
2012-09-13Confirm before overwriting an entryBrian Mattern1-1/+8
2012-09-13Use bash's read command better.Jason A. Donenfeld1-14/+8
2012-09-13Add --version switch, per request.Jason A. Donenfeld2-4/+23
2012-09-13Be more careful about cleaning up.Jason A. Donenfeld1-6/+4
2012-09-12Use getopt to regularize optionsBrian Mattern2-27/+36
2012-09-12Don't quote ${EDITOR:-vi}rupa1-1/+1
2012-09-12Use PASSWORD_STORE_DIR environment variable if it is set.Jason A. Donenfeld2-4/+5
2012-09-11Use portable mktemp.1.2.1Jason A. Donenfeld1-3/+4
2012-09-11Fix inconsistent indentation in usage messageDmitry Medvinsky1-1/+1
2012-09-11Fix makefile and use proper manpage hyperlinks.Jason A. Donenfeld2-2/+10
2012-09-11Bump debian version.1.2Jason A. Donenfeld1-1/+1
2012-09-11Add an edit mode that uses $EDITOR.Jason A. Donenfeld2-23/+80
2012-09-11default to 'show' command for zsh completionBrian Mattern1-0/+1
2012-09-10Modifying zsh completion to work with OS X home dir location and sedDavid Michael1-1/+1
2012-09-08Only copy the first line of the password file to the clipboard.Jason A. Donenfeld2-3/+3
2012-09-08Move completion files to contrib.1.1.4Jason A. Donenfeld3-2/+2
2012-09-08Import ZSH completion file from Johan Venant <jvenant@invicem.pro>.Jason A. Donenfeld3-1/+75
2012-09-08More info in INSTALL.Jason A. Donenfeld1-0/+9
2012-09-08Simplify README.Jason A. Donenfeld1-17/+2
2012-09-08Fedora wants the whole license in COPYING.Jason A. Donenfeld1-12/+352
2012-09-07Update FSF address, add copyrights.1.1.3Jason A. Donenfeld4-21/+26
2012-09-07Bump debian to 1.1.3.Jason A. Donenfeld1-1/+1
2012-09-07Explicitly set permissions when running 'install'Christophe Fergeau1-3/+3
2012-09-07No need for a shebang in bash completion fileChristophe Fergeau1-1/+1
2012-09-06Update COPYING to reflect man page and project page.1.1.2Jason A. Donenfeld1-10/+11
2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8
2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8
2012-09-06Change debian name.Jason A. Donenfeld5-5/+4
2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1
2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1
2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2
2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2
2012-09-04No echo mode.Jason A. Donenfeld2-16/+42
2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1
2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1
2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14
2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60
2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1
2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1
2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224
2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173
2012-09-03Support pass gitJason A. Donenfeld2-1/+15
ing.cLars Hjemli4-28/+29 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 Add a global variable, cgit_max_lock_attemps, to avoid the possibility of infinite loops when failing to acquire a lockfile. This could happen on broken setups or under crazy server load. Incidentally, this also fixes a lurking bug in cache_lock() where an uninitialized returnvalue was used. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli9-28/+353 This enables internal caching of page output. Page requests are split into four groups: 1) repo listing (front page) 2) repo summary 3) repo pages w/symbolic references in query string 4) repo pages w/constant sha1's in query string Each group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>