• Show log

    Commit

  • Hash : 26846f4c
    Author : Edward Thomson
    Date : 2021-05-06T15:19:58

    filter: remove git_buf sharing in `git_filter_list_apply_to_data`
    
    The API `git_filter_list_apply_to_data` shares data between its out and
    in parameters to avoid unnecessarily copying it when there are no
    filters to apply.  However, it does so in a manner that is potentially
    confusing, leaving both `git_buf`s populated with data.  This is risky
    for end-users who have to know how to deal with this.  Instead, we
    remove this optimization - users who want to avoid unnecessary copies
    can use the longstanding streaming API or check the filter status before
    invoking the filters.