# salt.fileserver.gitfs

The backend for the git based file server system.

After enabling this backend, branches and tags in a remote git repository are exposed to salt as different environments. This feature is managed by the fileserver_backend option in the salt master config.

depends: | gitpython Python module

`salt.fileserver.gitfs.` `dir_list`(load)

  Return a list of all directories on the master

`salt.fileserver.gitfs.` `envs`()

  Return a list of refs that can be used as environments

`salt.fileserver.gitfs.` `file_hash`(load, fnd)

  Return a file hash, the hash type is set in the master config file

`salt.fileserver.gitfs.` `file_list`(load)

  Return a list of all files on the file server in a specified environment

`salt.fileserver.gitfs.` `file_list_emptydirs`(load)

  Return a list of all empty directories on the master

`salt.fileserver.gitfs.` `find_file`(path, short='base', **kwargs)

  Find the first file to match the path and ref, read the file out of git and send the path to the newly cached file

`salt.fileserver.gitfs.` `init`()

  Return the git repo object for this session

`salt.fileserver.gitfs.` `purge_cache`()

`salt.fileserver.gitfs.` `serve_file`(load, fnd)

  Return a chunk from a file based on the data received

`salt.fileserver.gitfs.` `update`()

  Execute a git pull on all of the repos

Current Salt release: 0.17.1

#### Previous topic

salt.fileserver.s3fs

#### Next topic

salt.fileserver.hgfs

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd