-
Notifications
You must be signed in to change notification settings - Fork 151
Clean up path processing #319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mfwitten
wants to merge
37
commits into
sahib:develop
Choose a base branch
from
mfwitten:0007/prepend-paths
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
ff9a53d
Use explicit types for some integer constants
mfwitten d085572
lib/cmdline.c: Fix error message
mfwitten 63bc4be
Miscellaneous improvements
mfwitten a3e9d5c
lib/cfg.*: Clean up `rm_cfg_free_paths()'
mfwitten 93541fc
lib/cfg.*: `rm_cfg_add_path()' now returns `bool'
mfwitten 9c51e9d
lib/cmdline.c: return the status of `rm_cfg_add_path()'
mfwitten f8629f1
lib/cfg.*: Refactor `rm_cfg_add_path()'
mfwitten 3539636
lib/cfg.*: Refactor `rm_cfg_add_path()'
mfwitten fb1ba2d
lib/cmdline.c: Move `rm_cmd_read_paths_from_stdin()'
mfwitten ee9b9a0
lib/cmdline.c: Simplify size in call to `malloc()'
mfwitten f8cea9f
lib/cmdline.c: Replace `RmSession' with `RmCfg' in `rm_cmd_set_paths*()'
mfwitten 25db8f6
lib/cmdline.c: Abstract out struct `rm_cmd_set_paths_vars'
mfwitten 1e81e41
lib/cmdline.c: Add error handling to `rm_cmd_set_paths_from_stdin()'
mfwitten fb31ce0
lib/cfg.h: Remove member `read_stdin'
mfwitten d4f7805
lib/cmdline.c: Consolidate the logic around whether to read paths fro…
mfwitten 13304f7
lib/cmdline.c: Move constant loop condition (`paths') out of the loop
mfwitten a9f4de0
lib/cmdline.c: Indent code to reflect the fact that it's in a block
mfwitten 05191ee
lib/cmdline.c: Use a pointer rather than an index integer for looping
mfwitten 4f14e8a
lib/cmdline.c: Free each command-line path as it is processed.
mfwitten 5dafe3a
lib/cfg-funcs.h: Move `cfg->replay' and `cfg->path_count++'
mfwitten a5698fd
lib/path.h: s/idx/index/ in `RmPath'
mfwitten 322d7cc
lib/cmdline.c: Move `cfg->replay' and `cfg->path_count++' out of loops
mfwitten 67e0738
lib/path.h: s/treat_as_single_vol/single_volume/ in `RmPath'
mfwitten e39fa29
lib/cfg.h: Use `RmCfg::path_count' more purposefully
mfwitten 2f72e34
lib/cfg.c: git mv lib/cfg.c lib/cfg-funcs.h
mfwitten eb09ea9
lib/cfg.*: Rename `rm_cfg_add_path' to `rm_cfg_prepend_path()'
mfwitten bc825f3
lib/cmdline.c: Abstract out `rm_cmd_set_paths_from_cmdline()'
mfwitten 74daf3b
lib/cfg-funcs.h: Complete `git mv lib/cfg.c lib/cfg-funcs.h'
mfwitten 6dcbfde
lib/cfg.*: rm_cfg_prepend_path(): swap parameters `preferred' and `path'
mfwitten 4182c59
lib/cmdline.c: Replace `strcmp()' with direct character comparisons
mfwitten 605b5a9
lib/cfg.c -> lib/cfg-funcs.h: Make functions inlinable
mfwitten a4e4b88
lib/cmdline.c: Tell compiler to optimize for the value of `replay'
mfwitten 30e7156
lib/cfg-funcs.h: Insert `g_assert(cfg);' into `rm_cfg_set_default()'
mfwitten 2c24f77
lib/cmdline.c: INLINE `rm_cmd_set_paths()'
mfwitten 3b1098c
lib/cfg.c -> lib/cfg-funcs.h: Refactor functions
mfwitten c0ba1b5
lib/cmdline.c: Refactor `rm_cmd_set_paths*()'
mfwitten 0d332c9
Merge 'develop' into 'mfwitten/0007/prepend-paths'
mfwitten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.