git_index

Generates arguments to pass to stagit-index in descending order by commit date.
git clone https://git.philomathiclife.com/repos/git_index
Log | Files | Refs | README

README.md (1625B)


      1 # git_index
      2 
      3 `git_index` invokes [`stagit-index`](https://codemadness.org/stagit.html) by passing in `git` repos in descending
      4 order by commit date. The absolute path to the parent directory containing `git` repos is passed via `-d`/`--dir`.
      5 
      6 ## License
      7 
      8 Licensed under either of
      9 
     10 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0).
     11 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT).
     12 
     13 at your option.
     14 
     15 ## Contribution
     16 
     17 Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,
     18 as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
     19 
     20 ### Status
     21 
     22 This package is self-serving. I host `git.philomathiclife.com` which serves my `git` repos in addition to an HTTPS
     23 front-end via [`httpd`](https://man.openbsd.org/OpenBSD-7.5/amd64/httpd.8) on OpenBSD-stable. The static HTML files
     24 are created with `stagit`, and the index file is created by `stagit-index`. `stagit-index` requires one to pass
     25 the directories via arguments. The order of the arguments dictates the order of the resulting entries in
     26 `index.html`. This program simply extracts the most recent commit from each repo via `git log` and writes the
     27 paths of the repos in descending order of commit date to `stdout`. One can use command substitution to pass this to
     28 `stagit-index`. There are several assumptions made in this program like `/usr/local/bin/git` exists and is
     29 the path to `git`, and every child directory of the passed directory is a valid `git` repo.