import: --message/-m option
This commit is contained in:
parent
162c772703
commit
e765d3e24c
6 changed files with 45 additions and 6 deletions
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2024-01-18T16:18:38Z"
|
||||
content="""
|
||||
This would need to start with `git-annex import --from=remote`
|
||||
getting a `--message` option. Which I've just implemented.
|
||||
|
||||
As for adding an option to `git-annex pull`, it would need to be an option
|
||||
other than `--message`, because `git-annex sync` already uses `--message`
|
||||
for the commit message. And since `git-annex pull` can pull from more than
|
||||
one remote at a time, it seems that it would need an option that specifies
|
||||
a message plus which remote to use that message for. Or the option
|
||||
would need to only be used when using `git-annex pull` with a single
|
||||
specified remote.
|
||||
|
||||
That seems like perhaps unncessary complexity, since if you want to import
|
||||
a tree from a remote and specify a message, you can just use
|
||||
`git-annex import` with `--message` now.
|
||||
And then you can run `git-annex pull` to proceed with the rest of what it does.
|
||||
|
||||
Good enough?
|
||||
"""]]
|
|
@ -102,6 +102,11 @@ the tree of files on the remote, even when importing into a subdirectory.
|
|||
`git-annex get` can later be used to download files, as desired.
|
||||
The --no-content option is not supported by all special remotes.
|
||||
|
||||
* `--message=msg` `-m msg`
|
||||
|
||||
Use this option to specify a commit message for the changes that have
|
||||
been made to the special remote since the last import from it.
|
||||
|
||||
# IMPORTING FROM A DIRECTORY
|
||||
|
||||
When run with a path, `git annex import` **moves** files from somewhere outside
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue