git-annex-find(1)

πŸ“¦
version 10.20261026 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– git-annex-find(1) πŸ’–

okay bestie, welcome to git-annex-find β€” part of the General Commands Manual, and honestly? it's giving "let me just show you what you've got" ✨


🌸 NAME 🌸

git-annex-find β€” lists available files πŸ¦‹


✨ SYNOPSIS ✨

git annex find [path ...]

πŸŽ€ DESCRIPTION πŸŽ€

So basically it spits out a list of annexed files in whatever path you point it at πŸ’… And if you give it no path at all? It just goes feral in the current directory and all its subdirectories, hunting them all down for you. no cap.


πŸ‘‘ OPTIONS πŸ‘‘

matching options 🧚

The git-annex-matching-options(1) can be used to specify which files to list. iykyk.

By default, the find command only lists annexed files whose content is currently present. Specifying any of the matching options will override this default behavior β€” so heads up, that default vibe check goes out the window.

To list all annexed files, present or not, specify --anything.

To list annexed files whose content is not present, specify --not --in=here

Other options πŸ“

  • --branch=ref β€” List files in the specified branch or treeish. lowkey so useful 🌈
  • --print0 β€” Output filenames terminated with nulls, for use with xargs -0
  • --format=value β€” Use custom output formatting. main character energy, honestly.

The value is a format string, in which '${var}' is expanded to the value of a variable. To right-justify a variable with whitespace, use '${var;width}' ; to left-justify a variable, use '${var;-width}'; to escape unusual characters (including control characters) in a variable, use '${escaped_var}'

These variables are available for use in formats: file, key, backend, bytesize, humansize, keyname, hashdirlower, hashdirmixed, mtime (for the mtime field of a WORM key). 🫢

Also, '\n' is a newline, '\000' is a NULL, etc.

The default output format is the same as --format='${file}\n', except when outputting to a terminal, control characters will be escaped. πŸ’…

  • --json β€” Output the list of files in JSON format. πŸ“¦

This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. fr fr.

  • --json-error-messages β€” Messages that would normally be output to standard error are included in the JSON instead. not me redirecting my feelings into JSON 😭
  • --batch β€” Enables batch mode, in which a file is read in a line from stdin, its information displayed, and repeat. πŸ”

Note that if the file is not an annexed file, or is not present, or otherwise doesn't meet the matching options, an empty line will be output instead. πŸ’€

  • -z β€” Makes the --batch input be delimited by nulls instead of the usual newlines. slay 🌟

Also the git-annex-common-options(1) can be used. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯


πŸ’œ AUTHOR πŸ’œ

Joey Hess <id@joeyh.name> πŸ‘‘


okay that's the whole page bestie, and yes the manual header said git-annex-find(1) and the footer signed off with git-annex-find(1) again because the page simply could not stop being iconic πŸ’…βœ¨ bye ily, go list some files πŸŽ€πŸ¦‹