summaryrefslogtreecommitdiff
path: root/metastore.c
AgeCommit message (Collapse)Author
2015-09-13Move source files to src/ directory.Przemyslaw Pawelczyk
As a bonus you can build out-of-tree now via make -f. It's part of the work related to issue #22.
2015-09-08Add action to dump metadata in human-readable form: -d / --dump.Przemyslaw Pawelczyk
metastore depends now on libbsd, because of strmode() function. This commit fixes issue #28.
2015-09-07metastore.c: Show default metastore file in help message.Przemyslaw Pawelczyk
2015-09-06Simplify code performing actions. Remove duplicated code.Przemyslaw Pawelczyk
2015-09-06metastore.c: Simplify and compress option handling code.Przemyslaw Pawelczyk
2015-09-03Remove trailing whitespaces.Przemyslaw Pawelczyk
2015-09-03Make all license notices in files explicit about being GPLv2 only.Przemyslaw Pawelczyk
Turn version 2 of the License into only version 2 of the License is applicable and restore the semicolon preceding it.
2015-09-03Make all license notices in source files formatted the same way.Przemyslaw Pawelczyk
Wording has been changed only in Makefile, where: Free Software has been fixed into proper name: Free Software Foundation, Inc. with trailing comma separating it from address.
2015-09-02metastore.c: Remove unused parameters from functions.Przemyslaw Pawelczyk
2015-09-02Merge branch 'impro/switch-xattr-header'Przemyslaw Pawelczyk
Conflicts: NEWS
2015-09-02metastore.c: Improve removing empty dirs not present in metadata.Przemyslaw Pawelczyk
Store extradirs list ordered by pathlen descendingly, so one traversal should be enough to remove empty dirs.
2015-09-02metastore.c: Improve removing empty dirs not present in metadata.Przemyslaw Pawelczyk
Update extradirs list after successful rmdir(), so already removed directory won't be provided to rmdir() again.
2015-09-02metastore.c: Add long option for -E in help, reorder and fix alignment.Przemyslaw Pawelczyk
2015-09-02Add support for deleting directories with -a -E.Dan Fandrich
This is analagous to the -e option to create empty directories. It simply removes them when they are not present in the metadata. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-08Use sys/xattr.h instead of attr/xattr.h.Ken Dawson
xattr.h from libattr is not necessary, because glibc ships its own xattr.h for many years already (since v2.3, so it's like 13 years). libattr's header included errno.h, thus now it needs to be included explicitly. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-07Avoid comparison between signed and unsigned integers.Dan Fandrich
This removes warnings shown during build with -Wextra flag. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2013-05-03Introduce settings structure.Przemyslaw Pawelczyk
No more passing particular options (like git or mtime) to functions. The structure is meant to be immutable after filling during startup.
2012-02-10Add option preventing metastore from omitting .git dirs.Przemyslaw Pawelczyk
2012-02-10Fix getopt parsing of -f.Romain Francoise
2008-06-23Cleanup help messagev1David Härdeman
2008-06-23Add stricter build flagsDavid Härdeman
2008-06-23Add dynamic metafile pathDavid Härdeman
In some situations it may be useful to have multiple sets of metadata for the same hierarchy (e.g. representing how a file set should appear on different hosts). The ability to select a metadata file may be useful in this case. Patch by Sergio Callegari <sergio.callegari@gmail.com>
2008-03-20First stab at supporting the option of automatically creating emptyDavid Härdeman
directories which are missing. This should help with Debian BR #460998
2007-11-25fix display of message in usage messageJoey Hess
Displaying a function pointer as a string doesn't work well. :-)
2007-05-21Add caching uid/gid lookup functionsDavid Härdeman
2007-05-21Use hash tables instead of linked lists for a nice speedup at the cost of ↵David Härdeman
sorted output
2007-05-21And add a newlineDavid Härdeman
2007-05-21Oops, fix typoDavid Härdeman
2007-05-21Sadly, we can't change symlink mtimesDavid Härdeman
2007-05-20Fix chmod so that it actually worksDavid Härdeman
2007-05-19Correct usage messageDavid Härdeman
2007-05-19Add a man page and update help messageDavid Härdeman
2007-05-19Improve some variable names and add comments to the last few functionsDavid Härdeman
2007-05-19And remove another global variable (verbosity)David Härdeman
2007-05-19Remove the need for a global variable (do_mtime)David Härdeman
2007-05-1980-col align code, add license headersDavid Härdeman
2007-05-19Change all printf() calls to msg() calls and clean up outputDavid Härdeman
2007-05-18Split meta entry functions into a separate fileDavid Härdeman
2007-05-18Make sure only initial paths are normalizedDavid Härdeman
2007-05-18Add debug output for compare actionDavid Härdeman
2007-05-18Also ignore .git directoriesDavid Härdeman
2007-05-18Initial project checkinDavid Härdeman