my question is how to provide --strategy dest-wins...
# help
u
my question is how to provide --strategy dest-wins option via SDK ?
u
Hey @Aapta Bhatt , Let me check that for you
u
take a look at this example, there are two
merge_into_branch
API calls, the second one passes the
merge
parameter, with additional data, such as: message, metadata and strategy
u
Copy code
from lakefs_client.model.merge import Merge

merge = Merge(
  message="message_example",
  metadata={
    "key": "key_example",
  },
  strategy="strategy_example",
) # Merge |  (optional)

api_response = api_instance.merge_into_branch(repository, source_ref, destination_branch, merge=merge)
u
Thanks, It really helped 🙂
u
😃 happy to hear