pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/libgit2/libgit2/tree/main/src/cli

rigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-0fcd9af82350aeda.css" /> libgit2/src/cli at main · libgit2/libgit2 · GitHub
Skip to content

Latest commit

 

History

History

README.md

cli

A git-compatible command-line interface that uses libgit2.

Adding commands

  1. Individual commands have a main-like top-level entrypoint. For example:

    int cmd_help(int argc, char **argv)

    Although this is the same signature as main, commands are not built as individual standalone executables, they'll be linked into the main cli. (Though there may be an option for command executables to be built as standalone executables in the future.)

  2. Commands are prototyped in cmd.h and added to main.c's list of commands (cli_cmds[]). Commands should be specified with their name, entrypoint and a brief description that can be printed in git help. This is done because commands are linked into the main cli.

  3. Commands should accept a --help option that displays their help information. This will be shown when a user runs <command> --help and when a user runs help <command>.

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy