Pipeline using GIT resource to pass last changed files

Hi ,

I’m using the concourse git resource in my pipeline and passing the repo (contains files). as an input to my next task (a container that processes the files). Instead of passing on all the files ; i wish to pass only the files that have been changed. I know i can achieve this in a git repository using

git log --name-only -1 --format="" But how do i achieve this in my pipeline using the git resource ? Is there any other ways to only pass the last changed files as the output of the git resource ?

Here is my pipeline that i’m using:

resources:
- name: deploy
  type: git
  source:
    uri: ssh://git@abc.github.com/pvtrepos/deploy.git
    private_key: ((github.key))
jobs:
- name: Test CD
  plan:
  - get: deploy
    trigger: true
  - task: Deploy new files
    config:
      platform: linux
      image_resource:
        type: registry-image
        source:
          repository: processor-image

      inputs:
        - name: deploy

      run:
        dir: deploy/files/
        path: /bin/sh
        args:
        -  -c
        - |
          output_dir=files
          cp -R new_files/ "${output_dir}"
          ls ${output_dir}
          python /src/processor.py --path=${output_dir}

This can be achieved by passing using the two tasks, First task to run the script get the delta files and pass it to the next task which processes those files.
It has nothing to do with the git resource.

I’m enjoying concourse.